2020-04-10 04:40:22 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
2020-07-05 01:02:57 +02:00
|
|
|
package db
|
2020-04-10 04:40:22 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Querier interface {
|
2022-05-06 23:41:52 +02:00
|
|
|
CreateAccessToken(ctx context.Context, arg CreateAccessTokenParams) (AccessToken, error)
|
2020-04-10 04:40:22 +02:00
|
|
|
CreateUserAccount(ctx context.Context, arg CreateUserAccountParams) (UserAccount, error)
|
2022-05-06 23:41:52 +02:00
|
|
|
DeleteAccessToken(ctx context.Context, token string) error
|
|
|
|
GetAccessToken(ctx context.Context, token string) (AccessToken, error)
|
2020-04-10 04:40:22 +02:00
|
|
|
GetUserAccountByID(ctx context.Context, userID uuid.UUID) (UserAccount, error)
|
|
|
|
GetUserAccountByUsername(ctx context.Context, username string) (UserAccount, error)
|
2022-05-06 23:41:52 +02:00
|
|
|
GetUserAccounts(ctx context.Context) ([]UserAccount, error)
|
|
|
|
HasAnyUserAccount(ctx context.Context) (bool, error)
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var _ Querier = (*Queries)(nil)
|