binding

package
v0.0.0-...-c74e22e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PropertyMysqlHost              = "mysql.host"
	PropertyMysqlHostDefault       = "127.0.0.1"
	PropertyMysqlPort              = "mysql.port"
	PropertyMysqlPortDefault       = "3306"
	PropertyMysqlDatabase          = "mysql.db"
	PropertyMysqlDatabaseDefault   = "db"
	PropertyMysqlUser              = "mysql.user"
	PropertyMysqlUserDefault       = "user"
	PropertyMysqlPassword          = "mysql.password"
	PropertyMysqlPasswordDefault   = "password"
	PropertyMysqlOptions           = "mysql.options"
	PropertyMysqlOptionsDefault    = "charset=utf8"
	PropertyMysqlPrimaryKey        = "mysql.primarykey"
	PropertyMysqlPrimaryKeyDefault = "yabf_key"
)

Variables

This section is empty.

Functions

func AddBindings

func AddBindings()

Types

type MysqlDB

type MysqlDB struct {
	*yabf.DBBase
	// contains filtered or unexported fields
}

func NewMysqlDB

func NewMysqlDB() *MysqlDB

func (*MysqlDB) Cleanup

func (self *MysqlDB) Cleanup() error

func (*MysqlDB) Delete

func (self *MysqlDB) Delete(table string, key string) yabf.StatusType

func (*MysqlDB) Init

func (self *MysqlDB) Init() error

func (*MysqlDB) Insert

func (self *MysqlDB) Insert(table string, key string, values yabf.KVMap) yabf.StatusType

func (*MysqlDB) Read

func (self *MysqlDB) Read(table string, key string, fields []string) (yabf.KVMap, yabf.StatusType)

func (*MysqlDB) Scan

func (self *MysqlDB) Scan(table string, startKey string, recordCount int64, fields []string) ([]yabf.KVMap, yabf.StatusType)

func (*MysqlDB) Update

func (self *MysqlDB) Update(table string, key string, values yabf.KVMap) yabf.StatusType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL