Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecFile ¶ added in v1.1.0
func ExecFile(ctx context.Context, executer QueryExecuter, path string) error
ExecFile executes a sql file.
func Transact ¶
func Transact(ctx context.Context, starter TxStarter, f func(context.Context, *sql.Tx) error) (err error)
Transact is a helper function to execute a function in a transaction.
func TruncateAll ¶ added in v1.1.0
func TruncateAll(ctx context.Context, executer QueryExecuter) error
TruncateAll truncates all tables.
Types ¶
Click to show internal directories.
Click to hide internal directories.