Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGXPool ¶
type PGXPool interface { Begin(ctx context.Context) (pgx.Tx, error) Ping(ctx context.Context) error QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) Close() }
PGXPool interface is abstraction of pgxpool package
type PGXRow ¶ added in v0.10.0
type PGXRow interface { pgx.Row }
PGXRow interface to mock pgx.Row for adding tests to repository layer
type PGXRows ¶ added in v0.10.0
type PGXRows interface { pgx.Rows }
PGXRows interface to mock pgx.Rows for adding tests to repository layer
type PGXTransaction ¶ added in v0.11.0
type PGXTransaction interface { pgx.Tx }
PGXTransaction interface to mock pgx.Tx for adding tests to repository layer
Click to show internal directories.
Click to hide internal directories.