Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBQuerier ¶
type DBQuerier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
func NewQuerier(conn genericConn) *DBQuerier
NewQuerier creates a DBQuerier that implements Querier. conn is typically *pgx.Conn, pgx.Tx, or *pgxpool.Pool.
func (*DBQuerier) DomainOneBatch ¶
func (q *DBQuerier) DomainOneBatch(batch genericBatch)
DomainOneBatch implements Querier.DomainOneBatch.
func (*DBQuerier) DomainOneScan ¶
DomainOneScan implements Querier.DomainOneScan.
type Querier ¶
type Querier interface { DomainOne(ctx context.Context) (string, error) // DomainOneBatch enqueues a DomainOne query into batch to be executed // later by the batch. DomainOneBatch(batch genericBatch) // DomainOneScan scans the result of an executed DomainOneBatch query. DomainOneScan(results pgx.BatchResults) (string, error) }
Querier is a typesafe Go interface backed by SQL queries.
Methods ending with Batch enqueue a query to run later in a pgx.Batch. After calling SendBatch on pgx.Conn, pgxpool.Pool, or pgx.Tx, use the Scan methods to parse the results.
Click to show internal directories.
Click to hide internal directories.