Documentation ¶
Index ¶
- func AcquireDb(dsn string) (*sqlx.DB, error)
- func DeleteSql(dbTaggedObj interface{}, tableName string) (string, error)
- func DeleteSqlM(objMap map[string]interface{}, tableName string) (string, error)
- func InsertSql(dbTaggedObj interface{}, tableName string) (string, error)
- func InsertSqlM(objMap map[string]interface{}, tableName string) (string, error)
- func MySqlEscape(noBackslashEscapes bool, v interface{}) (string, error)
- func MySqlEscapeDefault(noBackslashEscapes bool, v interface{}, defaultRet string) string
- func MySqlMogrify(noBackslashEscapes bool, query string, args ...interface{}) (string, error)
- func ReleaseDb(conn *sqlx.DB)
- func SelectSql(dbTaggedObj interface{}, tableName string, selectFields string) (string, error)
- func SelectSqlM(objMap map[string]interface{}, tableName string, selectFields string) (string, error)
- func UpsertSql(dbTaggedObj interface{}, tableName string, keyFields []string) (string, error)
- func UpsertSqlM(objMap map[string]interface{}, tableName string, keyFields []string) (string, error)
- type BusyPool
- type ConnPair
- type NullFloat
- type NullInt
- type NullString
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MySqlEscape ¶
func MySqlEscapeDefault ¶
func MySqlMogrify ¶
func SelectSqlM ¶
Types ¶
type NullString ¶ added in v1.4.10
type NullString string
func (*NullString) Scan ¶ added in v1.4.10
func (m *NullString) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.