/
querier.go
26 lines (21 loc) · 944 Bytes
/
querier.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.25.0
package persistence
import (
"context"
"encoding/json"
"github.com/google/uuid"
)
type Querier interface {
CreatePresentationAndPolls(ctx context.Context, polls json.RawMessage) (uuid.UUID, error)
CreateVote(ctx context.Context, arg CreateVoteParams) error
GetNextPoll(ctx context.Context, id uuid.UUID) (GetNextPollRow, error)
GetPoll(ctx context.Context, presentationid uuid.UUID) (GetPollRow, error)
GetPresentation(ctx context.Context, id uuid.UUID) (Presentation, error)
GetPresentationAndPoll(ctx context.Context, arg GetPresentationAndPollParams) (GetPresentationAndPollRow, error)
GetPreviousPoll(ctx context.Context, id uuid.UUID) (GetPreviousPollRow, error)
GetVotes(ctx context.Context, arg GetVotesParams) ([]GetVotesRow, error)
ListPolls(ctx context.Context, presentationid uuid.UUID) ([]ListPollsRow, error)
}
var _ Querier = (*Queries)(nil)