Documentation
¶
Overview ¶
this package provide the interface to interact with the database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queryer ¶
type Queryer interface {
Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
}
Queryer is an interface that defines methods for querying a database. It includes methods for executing queries that return multiple rows, single rows, and closing the connection. test with pgx.Conn and pgxpool.Pool. suitable pgx ecosystem
Click to show internal directories.
Click to hide internal directories.