Documentation ¶
Index ¶
- func DB() (*sql.DB, error)
- func Refresh()
- type MyTable
- func (myTable *MyTable) AddColumn(names ...string) *MyTable
- func (myTable *MyTable) AutoInsert(value []string) *MyTable
- func (m *MyTable) Clone() *MyTable
- func (myTable *MyTable) Create() error
- func (myTable *MyTable) CustomPrimaryKey(primaryKeyCode string) *MyTable
- func (myTable *MyTable) FlushInsert() error
- func (myTable *MyTable) SelectAll() (*sql.Rows, error)
- func (myTable *MyTable) SetTableName(name string) *MyTable
- func (myTable *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 Output *************************** // sql conversion structure
func (*MyTable) AutoInsert ¶
Smart insert data, one line at a time
func (*MyTable) Create ¶
generate a "create a form" statement, before implementation to ensure that SetTableName (), AddColumn () has been implemented
func (*MyTable) CustomPrimaryKey ¶
set the primary key statement (optional)
func (*MyTable) FlushInsert ¶
Add sqlCode "insert data" statement, before implementation to ensure that Create (), AutoInsert () has been implemented
func (*MyTable) SetTableName ¶
set the table name
Click to show internal directories.
Click to hide internal directories.