package
4.9.0
Repository: https://github.com/upper/db.git
Documentation: pkg.go.dev

# README

MySQL adapter for upper/db

Please read the full docs, acknowledgements and examples at https://upper.io/v4/adapter/mysql/.

# Functions

DecodeJSON is deprecated and going to be removed.
EncodeJSON is deprecated and going to be removed.
JSONValue takes an interface and provides a driver.Value that can be stored as a JSON column.
New creates a sqlbuilder.Sesion instance by wrapping a *sql.DB value.
NewTx creates a sqlbuilder.Tx instance by wrapping a *sql.Tx value.
Open establishes a connection to the database server and returns a db.Session instance (which is compatible with db.Session).
ParseURL parses s into a ConnectionURL struct.
ScanJSON decodes a JSON byte stream into the passed dst value.

# Constants

Adapter is the public name of the adapter.

# Structs

ConnectionURL implements a MySQL connection struct.
JSON represents a MySQL's JSON value: https://www.mysql.org/docs/9.6/static/datatype-json.html.
JSONConverter provides a helper method WrapValue that satisfies sqlbuilder.ValueWrapper, can be used to encode Go structs into JSON MySQL types and vice versa.

# Type aliases

JSONArray represents an array of any type (`[]interface{}`) that is compatible with MySQL's JSON type.
JSONMap represents a map of interfaces with string keys (`map[string]interface{}`) that is compatible with MySQL's JSON type.