import "github.com/jmoiron/sqlx/types"
BitBool is an implementation of a bool for the MySQL type BIT(1). This type allows you to avoid wasting an entire byte for MySQL's boolean type TINYINT.
Scan implements the sql.Scanner interface, and turns the bitfield incoming from MySQL into a BitBool
Value implements the driver.Valuer interface, and turns the BitBool into a bitfield (BIT(1)) for MySQL storage.
GzippedText is a []byte which transparently gzips data being submitted to a database and ungzips data being Scanned from a database.
func (g *GzippedText) Scan(src interface{}) error
Scan implements the sql.Scanner interface, ungzipping the value coming off the wire and storing the raw result in the GzippedText.
func (g GzippedText) Value() (driver.Value, error)
Value implements the driver.Valuer interface, gzipping the raw value of this GzippedText.
type JSONText json.RawMessage
JSONText is a json.RawMessage, which is a []byte underneath. Value() validates the json format in the source, and returns an error if the json is not valid. Scan does no validation. JSONText additionally implements `Unmarshal`, which unmarshals the json within to an interface{}
MarshalJSON returns the *j as the JSON encoding of j.
Scan stores the src in *j. No validation is done.
String supports pretty printing for JSONText types.
Unmarshal unmarshal's the json in j to v, as in json.Unmarshal.
UnmarshalJSON sets *j to a copy of data
Value returns j as a value. This does a validating unmarshal into another RawMessage. If j is invalid json, it returns an error.
NullJSONText represents a JSONText that may be null. NullJSONText implements the scanner interface so it can be used as a scan destination, similar to NullString.
func (n *NullJSONText) Scan(value interface{}) error
Scan implements the Scanner interface.
func (n NullJSONText) Value() (driver.Value, error)
Value implements the driver Valuer interface.
Package types imports 6 packages (graph) and is imported by 70 packages. Updated 2020-09-09. Refresh now. Tools for package owners.