mysql

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TABLE_NAME_USERS = "users"
)

Variables

This section is empty.

Functions

func Benchmark

func Benchmark()

func MYSQL_BaseTypesUpdate added in v1.1.11

func MYSQL_BaseTypesUpdate(e *sqlca.Engine)

func MYSQL_CustomTag

func MYSQL_CustomTag(e *sqlca.Engine)

func MYSQL_OrmDeleteFromTable

func MYSQL_OrmDeleteFromTable(e *sqlca.Engine)

func MYSQL_OrmFind added in v1.1.3

func MYSQL_OrmFind(e *sqlca.Engine)

func MYSQL_OrmInCondition

func MYSQL_OrmInCondition(e *sqlca.Engine)

func MYSQL_OrmInsertByModel

func MYSQL_OrmInsertByModel(e *sqlca.Engine)

func MYSQL_OrmQueryIntoModel

func MYSQL_OrmQueryIntoModel(e *sqlca.Engine)

func MYSQL_OrmQueryIntoModelSlice

func MYSQL_OrmQueryIntoModelSlice(e *sqlca.Engine)

func MYSQL_OrmSelectMultiTable

func MYSQL_OrmSelectMultiTable(e *sqlca.Engine)

func MYSQL_OrmToSQL added in v1.1.5

func MYSQL_OrmToSQL(e *sqlca.Engine)

func MYSQL_OrmUpdateByModel

func MYSQL_OrmUpdateByModel(e *sqlca.Engine)

func MYSQL_OrmUpdateIndexToCache

func MYSQL_OrmUpdateIndexToCache(e *sqlca.Engine)

func MYSQL_OrmUpsertByModel

func MYSQL_OrmUpsertByModel(e *sqlca.Engine)

func MYSQL_OrmWhereRequire added in v1.1.6

func MYSQL_OrmWhereRequire(e *sqlca.Engine)

func MYSQL_RawExec

func MYSQL_RawExec(e *sqlca.Engine)

func MYSQL_RawQueryIntoMap

func MYSQL_RawQueryIntoMap(e *sqlca.Engine)

func MYSQL_RawQueryIntoModel

func MYSQL_RawQueryIntoModel(e *sqlca.Engine)

func MYSQL_RawQueryIntoModelSlice

func MYSQL_RawQueryIntoModelSlice(e *sqlca.Engine)

func MYSQL_TxForUpdate added in v1.1.5

func MYSQL_TxForUpdate(e *sqlca.Engine)

func MYSQL_TxGetExec

func MYSQL_TxGetExec(e *sqlca.Engine) (err error)

func MYSQL_TxRollback

func MYSQL_TxRollback(e *sqlca.Engine) (err error)

Types

type ClassDo

type ClassDo struct {
	Id        int32  `db:"id"`
	UserId    int32  `db:"user_id"`
	ClassNo   string `db:"class_no"`
	CreatedAt string `db:"created_at" sqlca:"readonly"`
	IgnoreMe  string `db:"-"`
}

type UserDO

type UserDO struct {
	Id        int32         `db:"id"`
	Name      string        `db:"name"`
	Phone     string        `db:"phone"`
	Sex       int8          `db:"sex"`
	Email     string        `db:"email"`
	Disable   int8          `db:"disable"`
	Balance   sqlca.Decimal `db:"balance"`
	CreatedAt string        `db:"created_at" sqlca:"readonly"`
	IgnoreMe  string        `db:"-"`
}

Jump to

Keyboard shortcuts

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