Documentation ¶ Index ¶ Constants func New(config Config) (sqlExt.ISqlExt, error) type Config Constants ¶ View Source const ( // CtxKeySqlTx is the context key for transaction CtxKeySqlTx = "sql_tx" // CtxKeySqlxTx is the context key for sqlx transaction CtxKeySqlxTx = "sqlx_tx" ) Variables ¶ This section is empty. Functions ¶ func New ¶ func New(config Config) (sqlExt.ISqlExt, error) Types ¶ type Config ¶ type Config struct { Host string Port string Database string Username string Password string } Source Files ¶ View all Source files client.go constant.go type.go Click to show internal directories. Click to hide internal directories.