Versions in this module Expand all Collapse all v1 v1.3.1 Jul 28, 2020 Changes in this version + func GetSQLXFromSQLConnector(db SQLConnector) *sqlx.DB v1.2.1 Jul 7, 2020 Changes in this version + const DriverMySQL + const DriverSQLServer + func DriverName() string + func InitConnection(drvName string, connection string) + func Query(query string, args ...interface{}) (*sqlx.Rows, error) + func QueryOrPanic(query string, args ...interface{}) *sqlx.Rows + func TableExists(tableName string) bool + type SQLConnector interface + DriverName func() string + Exec func(string, ...interface{}) (sql.Result, error) + Prepare func(string) (*sql.Stmt, error) + Preparex func(string) (*sqlx.Stmt, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row + QueryRowx func(string, ...interface{}) *sqlx.Row + Queryx func(string, ...interface{}) (*sqlx.Rows, error) + func GetConnection() SQLConnector