Documentation ¶
Index ¶
- func CatchDBExecPanic()
- func Chain(fn func(context.Context) error, mws ...MW) func(context.Context) error
- func DBExec(t *testing.T, conn *sql.Conn, query string, args ...interface{})
- func GetPool() *dockertest.Pool
- func MysqlConn(ctx context.Context) *sql.Conn
- func WithMysqlConn(fn func(context.Context) error) func(context.Context) error
- type MW
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchDBExecPanic ¶
func CatchDBExecPanic()
CatchDBExecPanic catch DBExec's panic. Usually it is called in a defer.
func DBExec ¶
DBExec execute the query and panic if something error happened. Should use CatchDBExecPanic to catch the panic.
Types ¶
Click to show internal directories.
Click to hide internal directories.