Documentation
¶
Index ¶
- func Register(ctx context.Context, conn RegisterConn) error
- type Arrays
- type Blocks
- type DBQuerier
- func (q *DBQuerier) ArraysInput(ctx context.Context, arrays Arrays) (Arrays, error)
- func (q *DBQuerier) InsertScreenshotBlocks(ctx context.Context, screenshotID int, body string) (InsertScreenshotBlocksRow, error)
- func (q *DBQuerier) SearchScreenshots(ctx context.Context, params SearchScreenshotsParams) ([]SearchScreenshotsRow, error)
- func (q *DBQuerier) SearchScreenshotsOneCol(ctx context.Context, params SearchScreenshotsOneColParams) ([][]*Blocks, error)
- func (q *DBQuerier) UserEmails(ctx context.Context) (UserEmail, error)
- type InsertScreenshotBlocksRow
- type Querier
- type RegisterConn
- type SearchScreenshotsOneColParams
- type SearchScreenshotsParams
- type SearchScreenshotsRow
- type UserEmail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arrays ¶
type Arrays struct {
Texts []string `json:"texts"`
Int8s []*int `json:"int8s"`
Bools []bool `json:"bools"`
Floats []*float64 `json:"floats"`
}
Arrays represents the Postgres composite type "arrays".
type Blocks ¶
type Blocks struct {
ID int `json:"id"`
ScreenshotID int `json:"screenshot_id"`
Body string `json:"body"`
}
Blocks represents the Postgres composite type "blocks".
type DBQuerier ¶
type DBQuerier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
NewQuerier creates a DBQuerier that implements Querier.
func (*DBQuerier) ArraysInput ¶
ArraysInput implements Querier.ArraysInput.
func (*DBQuerier) InsertScreenshotBlocks ¶
func (q *DBQuerier) InsertScreenshotBlocks(ctx context.Context, screenshotID int, body string) (InsertScreenshotBlocksRow, error)
InsertScreenshotBlocks implements Querier.InsertScreenshotBlocks.
func (*DBQuerier) SearchScreenshots ¶
func (q *DBQuerier) SearchScreenshots(ctx context.Context, params SearchScreenshotsParams) ([]SearchScreenshotsRow, error)
SearchScreenshots implements Querier.SearchScreenshots.
func (*DBQuerier) SearchScreenshotsOneCol ¶
func (q *DBQuerier) SearchScreenshotsOneCol(ctx context.Context, params SearchScreenshotsOneColParams) ([][]*Blocks, error)
SearchScreenshotsOneCol implements Querier.SearchScreenshotsOneCol.
type Querier ¶
type Querier interface {
SearchScreenshots(ctx context.Context, params SearchScreenshotsParams) ([]SearchScreenshotsRow, error)
SearchScreenshotsOneCol(ctx context.Context, params SearchScreenshotsOneColParams) ([][]*Blocks, error)
InsertScreenshotBlocks(ctx context.Context, screenshotID int, body string) (InsertScreenshotBlocksRow, error)
ArraysInput(ctx context.Context, arrays Arrays) (Arrays, error)
UserEmails(ctx context.Context) (UserEmail, error)
}
Querier is a typesafe Go interface backed by SQL queries.
type RegisterConn ¶ added in v1.6.0
type SearchScreenshotsParams ¶
type SearchScreenshotsRow ¶
Click to show internal directories.
Click to hide internal directories.