Documentation ¶
Index ¶
- Variables
- type Mysql
- func (m *Mysql) BulkInsertFromSliceMap(tableName string, unSavedRows []map[string]interface{}) (sql.Result, error)
- func (m *Mysql) BulkInsertFromSliceSlice(tableName string, fields []string, unSavedRows [][]interface{}) (sql.Result, error)
- func (m *Mysql) BulkUpdateFromSliceMapById(tableName string, keyName string, unSavedRows []map[string]interface{}) error
- func (m *Mysql) Close()
- func (m *Mysql) Connection() error
- func (m *Mysql) Copy(sourceTable string, targetTable string) error
- func (m *Mysql) DriverName() string
- func (m *Mysql) Drop(tableName string) error
- func (m *Mysql) Exec(query string, args ...interface{}) (sql.Result, error)
- func (m *Mysql) GetTableColumns(tableName string) ([]string, error)
- func (m *Mysql) InsertFromMap(tableName string, unSavedRow map[string]interface{}) (sql.Result, error)
- func (m *Mysql) InsertFromSlice(tableName string, fields []string, unSavedRow []interface{}) (sql.Result, error)
- func (m *Mysql) Ping() error
- func (m *Mysql) QueryFieldInterface(field string, query string, args ...interface{}) (interface{}, error)
- func (m *Mysql) QueryFieldInterfaceSlice(field string, query string, args ...interface{}) ([]interface{}, error)
- func (m *Mysql) QueryInterface(query string, args ...interface{}) ([]map[string]interface{}, error)
- func (m *Mysql) QueryInterfaceRow(query string, args ...interface{}) (map[string]interface{}, error)
- func (m *Mysql) QueryString(query string, args ...interface{}) ([]map[string]string, error)
- func (m *Mysql) QueryStringRow(query string, args ...interface{}) (map[string]string, error)
- func (m *Mysql) Truncate(tableName string) error
- func (m *Mysql) UpdateFromMapById(tableName string, keyName string, unSavedRow map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DriverName = "mysql"
Functions ¶
This section is empty.
Types ¶
type Mysql ¶
func (*Mysql) BulkInsertFromSliceMap ¶
func (*Mysql) BulkInsertFromSliceSlice ¶
func (*Mysql) BulkUpdateFromSliceMapById ¶
func (*Mysql) Connection ¶
func (*Mysql) DriverName ¶ added in v1.0.4
func (*Mysql) InsertFromMap ¶
func (*Mysql) InsertFromSlice ¶
func (*Mysql) QueryFieldInterface ¶
func (*Mysql) QueryFieldInterfaceSlice ¶
func (*Mysql) QueryInterface ¶
func (*Mysql) QueryInterfaceRow ¶
func (*Mysql) QueryString ¶
func (*Mysql) QueryStringRow ¶
Click to show internal directories.
Click to hide internal directories.