Documentation ¶
Index ¶
- type DBQuerier
- func (q *DBQuerier) GetBools(ctx context.Context, data []bool) ([]bool, error)
- func (q *DBQuerier) GetManyTimestamps(ctx context.Context, data []*time.Time) ([]*time.Time, error)
- func (q *DBQuerier) GetManyTimestamptzs(ctx context.Context, data []time.Time) ([]*time.Time, error)
- func (q *DBQuerier) GetOneTimestamp(ctx context.Context, data *time.Time) (*time.Time, error)
- 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.
func (*DBQuerier) GetManyTimestamps ¶
GetManyTimestamps implements Querier.GetManyTimestamps.
type Querier ¶
type Querier interface { GetBools(ctx context.Context, data []bool) ([]bool, error) GetOneTimestamp(ctx context.Context, data *time.Time) (*time.Time, error) GetManyTimestamptzs(ctx context.Context, data []time.Time) ([]*time.Time, error) GetManyTimestamps(ctx context.Context, data []*time.Time) ([]*time.Time, error) }
Querier is a typesafe Go interface backed by SQL queries.
Click to show internal directories.
Click to hide internal directories.