Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAdaptersOpenTestPool = map[string]OpenTestPool{ "pgx/v4": func(t testing.TB) adapter.ConnPool { return OpenTestPoolMaxConnsPGXv4(t, 5) }, }
AllAdaptersOpenTestPool lists all available adapters with callbacks
Functions ¶
func OpenTestPoolMaxConnsPGXv4 ¶
OpenTestPoolMaxConnsPGXv4 opens connections pool used in testing
Types ¶
type CommandTag ¶
CommandTag mock implementation of adapter.CommandTag
func (*CommandTag) RowsAffected ¶
func (m *CommandTag) RowsAffected() int64
RowsAffected mock implementation of adapter.CommandTag.RowsAffected()
type Conn ¶
Conn mock implementation of adapter.Conn
type ConnPool ¶
ConnPool mock implementation of adapter.ConnPool
type OpenOpenTestPoolMaxConns ¶
OpenOpenTestPoolMaxConns callback type for opening connection pool with custom max connections used in tests
type OpenTestPool ¶
OpenTestPool callback type for opening connection pool with default parameters used in tests
type Queryable ¶
Queryable mock implementation of adapter.Queryable
func (*Queryable) Exec ¶
func (m *Queryable) Exec(ctx context.Context, query string, args ...any) (adapter.CommandTag, error)
Exec mock implementation of adapter.Queryable.Exec()
Click to show internal directories.
Click to hide internal directories.