package
3.5.0+incompatible
Repository: https://github.com/fifsky/db.git
Documentation: pkg.go.dev

# README

MySQL adapter for upper.io/db

See the full docs, acknowledgements and examples at https://upper.io/db.v3/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 wraps the given *sql.DB session and creates a new db session.
NewTx wraps a regular *sql.Tx transaction and returns a new upper-db transaction backed by it.
Open stablishes a new connection with the SQL server.
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.