Documentation ¶
Index ¶
- func Compress() bool
- func IsWALMode() bool
- func JournalMode() string
- func MustCopyDir(tb testing.TB, src, dst string)
- func OpenSQLDB(tb testing.TB, dsn string) *sql.DB
- func PageSize() int
- func ReopenSQLDB(tb testing.TB, db **sql.DB, dsn string)
- func RetryUntil(tb testing.TB, interval, timeout time.Duration, fn func() error)
- func WithTx(tb testing.TB, driverName, dsn string, fn func(tx *sql.Tx))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶ added in v0.4.0
func Compress() bool
Compress returns true if LTX compression is enabled.
func IsWALMode ¶ added in v0.3.0
func IsWALMode() bool
IsWALMode returns the true if -journal-mode is set to "wal".
func JournalMode ¶ added in v0.3.0
func JournalMode() string
JournalMode returns the value of -journal-mode.
func MustCopyDir ¶
MustCopyDir recursively copies files from src directory to dst directory.
func ReopenSQLDB ¶
ReopenSQLDB closes the existing database connection and reopens it with the DSN.
func RetryUntil ¶
RetryUntil calls fn every interval until it returns nil or timeout elapses.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.