Documentation ¶
Index ¶
- type CreateWordRow
- type CreateWordsBatchParams
- type CreateWordsBatchRow
- type DBTX
- type ListWordBatchesParams
- type ListWordBatchesRow
- type ListWordFrequenciesParams
- type ListWordFrequenciesRow
- type ListWordRankingsParams
- type ListWordRankingsRow
- type ListWordsByBatchNameRow
- type ListWordsParams
- type ListWordsRow
- type Querier
- type Queries
- func (q *Queries) CreateWord(ctx context.Context, value string) (CreateWordRow, error)
- func (q *Queries) CreateWordsBatch(ctx context.Context, arg CreateWordsBatchParams) (CreateWordsBatchRow, error)
- func (q *Queries) ListWordBatches(ctx context.Context, arg ListWordBatchesParams) ([]ListWordBatchesRow, error)
- func (q *Queries) ListWordFrequencies(ctx context.Context, arg ListWordFrequenciesParams) ([]ListWordFrequenciesRow, error)
- func (q *Queries) ListWordRankings(ctx context.Context, arg ListWordRankingsParams) ([]ListWordRankingsRow, error)
- func (q *Queries) ListWords(ctx context.Context, arg ListWordsParams) ([]ListWordsRow, error)
- func (q *Queries) ListWordsByBatchName(ctx context.Context, name string) ([]ListWordsByBatchNameRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Word
- type WordBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateWordRow ¶
type CreateWordRow struct { ID int64 `json:"id"` Value string `json:"value"` CreatedAt pgtype.Timestamptz `json:"created_at"` }
type CreateWordsBatchParams ¶
type CreateWordsBatchRow ¶
type ListWordBatchesParams ¶
type ListWordBatchesRow ¶
type ListWordBatchesRow struct { ID int64 `json:"id"` Name string `json:"name"` CreatedAt pgtype.Timestamptz `json:"created_at"` }
type ListWordFrequenciesRow ¶
type ListWordRankingsParams ¶
type ListWordRankingsRow ¶
type ListWordsByBatchNameRow ¶
type ListWordsParams ¶
type ListWordsRow ¶
type ListWordsRow struct { ID int64 `json:"id"` Value string `json:"value"` CreatedAt pgtype.Timestamptz `json:"created_at"` }
type Querier ¶
type Querier interface { CreateWord(ctx context.Context, value string) (CreateWordRow, error) CreateWordsBatch(ctx context.Context, arg CreateWordsBatchParams) (CreateWordsBatchRow, error) ListWordBatches(ctx context.Context, arg ListWordBatchesParams) ([]ListWordBatchesRow, error) ListWordFrequencies(ctx context.Context, arg ListWordFrequenciesParams) ([]ListWordFrequenciesRow, error) ListWordRankings(ctx context.Context, arg ListWordRankingsParams) ([]ListWordRankingsRow, error) ListWords(ctx context.Context, arg ListWordsParams) ([]ListWordsRow, error) ListWordsByBatchName(ctx context.Context, name string) ([]ListWordsByBatchNameRow, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateWord ¶
func (*Queries) CreateWordsBatch ¶
func (q *Queries) CreateWordsBatch(ctx context.Context, arg CreateWordsBatchParams) (CreateWordsBatchRow, error)
func (*Queries) ListWordBatches ¶
func (q *Queries) ListWordBatches(ctx context.Context, arg ListWordBatchesParams) ([]ListWordBatchesRow, error)
func (*Queries) ListWordFrequencies ¶
func (q *Queries) ListWordFrequencies(ctx context.Context, arg ListWordFrequenciesParams) ([]ListWordFrequenciesRow, error)
func (*Queries) ListWordRankings ¶
func (q *Queries) ListWordRankings(ctx context.Context, arg ListWordRankingsParams) ([]ListWordRankingsRow, error)
func (*Queries) ListWords ¶
func (q *Queries) ListWords(ctx context.Context, arg ListWordsParams) ([]ListWordsRow, error)
func (*Queries) ListWordsByBatchName ¶
type Word ¶
type Word struct { ID int64 `json:"id"` Value string `json:"value"` CreatedAt pgtype.Timestamptz `json:"created_at"` DeletedAt pgtype.Timestamptz `json:"deleted_at"` BatchID pgtype.Int8 `json:"batch_id"` }
type WordBatch ¶
type WordBatch struct { ID int64 `json:"id"` Name string `json:"name"` CreatedAt pgtype.Timestamptz `json:"created_at"` DeletedAt pgtype.Timestamptz `json:"deleted_at"` }
Click to show internal directories.
Click to hide internal directories.