Home Download Docs Code Community
import "perkeep/pkg/sorted/mysql"
Overview
Index

Overview ▾

Package mysql provides an implementation of sorted.KeyValue on top of MySQL.

Index

func CreateDB(db *sql.DB, dbname string) error
func SQLCreateTables() []string
func SchemaVersion() int

Package files

cloudsql.go dbschema.go mysqlkv.go

func CreateDB

func CreateDB(db *sql.DB, dbname string) error

CreateDB creates the named database if it does not already exist.

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
Website layout inspired by memcached.
Content by the authors.