Documentation ¶
Overview ¶
Package mysql provides an implementation of sorted.KeyValue on top of MySQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyValue ¶
NewKeyValue returns a sorted.KeyValue implementation of the described MySQL database.
func SQLCreateTables ¶
func SQLCreateTables() []string
Note: using character set "binary", as any knowledge of character set encodings is handled by higher layers. At this layer we're just obeying the IndexStorage interface, which is purely about bytes.
func SchemaVersion ¶
func SchemaVersion() int
Types ¶
type Config ¶
type Config struct { Host string // Optional. Defaults to "localhost" in ConfigFromJSON. Database string // Required. User string // Required. Password string // Optional. }
Config holds the parameters used to connect to the MySQL db.
func ConfigFromJSON ¶
func ConfigFromJSON(config jsonconfig.Obj) (Config, error)
ConfigFromJSON populates Config from config, and validates config. It returns an error if config fails to validate.
Click to show internal directories.
Click to hide internal directories.