Documentation
¶
Index ¶
- func CreateTables(ddl string) error
- func Get(dest interface{}, query string, args ...interface{}) error
- func InitializeDB(config *Config) error
- func MustExec(query string, args ...interface{}) sql.Result
- func NamedExec(query string, arg interface{}) (sql.Result, error)
- func NamedInsert(query string, arg interface{}) (int64, error)
- func NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
- func NamedUpdate(query string, arg interface{}) (int64, error)
- func Query(query string, args ...interface{}) (*sqlx.Rows, error)
- func Select(dest interface{}, query string, args ...interface{}) error
- type Config
- type ConnectionPool
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func InitializeDB ¶ added in v1.0.1
func NamedInsert ¶
NamedInsert execute insert statement, return last insert id and error
func NamedUpdate ¶
NamedUpdate execute update statement, return affected row count and error
Types ¶
type ConnectionPool ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.