Documentation ¶
Index ¶
- func Do(sqlHandler trysql.SqlHandler) error
- func DoContext(ctx context.Context, sqlHandler trysql.SqlHandler) error
- func DoInTx(sqlHandler trysql.SqlHandler) error
- func DoInTxContext(ctx context.Context, sqlHandler trysql.SqlHandler) error
- func InitDB(dsn string, maxActive, maxIdle, maxLifeSeconds int, logSql bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoContext ¶
func DoContext(ctx context.Context, sqlHandler trysql.SqlHandler) error
DoContext 调用 sqlHandler
func DoInTxContext ¶
func DoInTxContext(ctx context.Context, sqlHandler trysql.SqlHandler) error
DoInTxContext 在事务中 调用 sqlHandler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.