Documentation
¶
Index ¶
Constants ¶
View Source
const (
PsqlMaxParams = 65535
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBTX ¶
type DBTX interface {
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
SelectContext(ctx context.Context, dest any, query string, args ...any) error
GetContext(ctx context.Context, dest any, query string, args ...any) error
NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)
NamedQuery(query string, arg any) (*sqlx.Rows, error)
}
type TestDB ¶
type TestDB[D Closer] struct { // contains filtered or unexported fields }
func NewServiceTestDB ¶
Click to show internal directories.
Click to hide internal directories.