AutoTable

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoCreateTable

type AutoCreateTable struct {
	// contains filtered or unexported fields
}

func NewAutoCreateTable

func NewAutoCreateTable(creater TableCreater) *AutoCreateTable

func (*AutoCreateTable) Exec

func (self *AutoCreateTable) Exec(db *mysql.DB, sql string, createTableArg interface{}) (*mysql.Result, error)

func (*AutoCreateTable) Query

func (self *AutoCreateTable) Query(db *mysql.DB, dest interface{}, sql string, createTableArg interface{}) error

func (*AutoCreateTable) QueryInt64

func (self *AutoCreateTable) QueryInt64(db *mysql.DB, sql string, createTableArg interface{}) (int64, error)

type TableCreater

type TableCreater interface {
	GetCreateTableSql(arg interface{}) string
}

Jump to

Keyboard shortcuts

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