Documentation ¶
Index ¶
- type DBQuerier
- func (q *DBQuerier) FindLtreeInput(ctx context.Context, inLtree pgtype.Text, inLtreeArray []string) (FindLtreeInputRow, error)
- func (q *DBQuerier) FindTopScienceChildren(ctx context.Context) ([]pgtype.Text, error)
- func (q *DBQuerier) FindTopScienceChildrenAgg(ctx context.Context) (pgtype.TextArray, error)
- func (q *DBQuerier) InsertSampleData(ctx context.Context) (pgconn.CommandTag, error)
- func (q *DBQuerier) WithTx(tx pgx.Tx) (*DBQuerier, error)
- type FindLtreeInputRow
- type Querier
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) FindLtreeInput ¶
func (q *DBQuerier) FindLtreeInput(ctx context.Context, inLtree pgtype.Text, inLtreeArray []string) (FindLtreeInputRow, error)
FindLtreeInput implements Querier.FindLtreeInput.
func (*DBQuerier) FindTopScienceChildren ¶
FindTopScienceChildren implements Querier.FindTopScienceChildren.
func (*DBQuerier) FindTopScienceChildrenAgg ¶
FindTopScienceChildrenAgg implements Querier.FindTopScienceChildrenAgg.
func (*DBQuerier) InsertSampleData ¶
InsertSampleData implements Querier.InsertSampleData.
type FindLtreeInputRow ¶
type Querier ¶
type Querier interface { FindTopScienceChildren(ctx context.Context) ([]pgtype.Text, error) FindTopScienceChildrenAgg(ctx context.Context) (pgtype.TextArray, error) InsertSampleData(ctx context.Context) (pgconn.CommandTag, error) FindLtreeInput(ctx context.Context, inLtree pgtype.Text, inLtreeArray []string) (FindLtreeInputRow, error) }
Querier is a typesafe Go interface backed by SQL queries.
Click to show internal directories.
Click to hide internal directories.