Documentation ¶
Index ¶
- type AutoCreateTable
- func (self *AutoCreateTable) Exec(db *mysql.DB, sql string, createTableArg interface{}) (*mysql.Result, error)
- func (self *AutoCreateTable) Query(db *mysql.DB, dest interface{}, sql string, createTableArg interface{}) error
- func (self *AutoCreateTable) QueryInt64(db *mysql.DB, sql string, createTableArg interface{}) (int64, error)
- type TableCreater
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) Query ¶
func (self *AutoCreateTable) Query(db *mysql.DB, dest interface{}, sql string, createTableArg interface{}) error
func (*AutoCreateTable) QueryInt64 ¶
type TableCreater ¶
type TableCreater interface {
GetCreateTableSql(arg interface{}) string
}
Click to show internal directories.
Click to hide internal directories.