Documentation
¶
Index ¶
- type Client
- func (c *Client) Close(_ context.Context) error
- func (c *Client) DB() *sql.DB
- func (c *Client) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
- func (c *Client) Master() *pgxpool.Pool
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)
- func (c *Client) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- func (c *Client) ScanQuery(ctx context.Context, dst any, query string, args ...any) error
- func (c *Client) ScanQueryRow(ctx context.Context, dst any, query string, args ...any) error
- type Option
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Option ¶
func WithLogger ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction(db *pgxpool.Pool) *Transaction
func (*Transaction) ReadCommitted ¶
Click to show internal directories.
Click to hide internal directories.