Documentation ¶
Index ¶
- func DB() (*sql.DB, error)
- func Refresh()
- type MyTable
- func (self *MyTable) AddColumn(names ...string) *MyTable
- func (self *MyTable) AutoInsert(value []string) *MyTable
- func (m *MyTable) Clone() *MyTable
- func (self *MyTable) Create() error
- func (self *MyTable) CustomPrimaryKey(primaryKeyCode string) *MyTable
- func (self *MyTable) FlushInsert() error
- func (self *MyTable) SelectAll() (*sql.Rows, error)
- func (self *MyTable) SetTableName(name string) *MyTable
- func (self *MyTable) Truncate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MyTable ¶
type MyTable struct {
// contains filtered or unexported fields
}
*********************** Mysql 输出 ************************** sql转换结构体
func (*MyTable) CustomPrimaryKey ¶
设置主键的语句(可选)
func (*MyTable) FlushInsert ¶
向sqlCode添加"插入数据"的语句,执行前须保证Create()、AutoInsert()已经执行
Click to show internal directories.
Click to hide internal directories.