skeleton/internal/database/querier.go

37 lines
1.9 KiB
Go
Raw Normal View History

2020-07-19 15:52:08 +02:00
// Code generated by sqlc. DO NOT EDIT.
package database
import (
"context"
2020-07-21 22:50:11 +02:00
"database/sql"
2020-07-19 15:52:08 +02:00
)
type Querier interface {
2020-07-21 22:50:11 +02:00
CountEmailsByIdentityID(ctx context.Context, identityID int64) (int64, error)
CountUnverifiedEmailsByIdentityID(ctx context.Context, identityID int64) (int64, error)
2020-07-19 15:52:08 +02:00
CreateEmail(ctx context.Context, arg CreateEmailParams) (Email, error)
2020-07-21 22:50:11 +02:00
CreateEmailConfirmation(ctx context.Context, arg CreateEmailConfirmationParams) (EmailConfirmation, error)
CreateIdentity(ctx context.Context, arg CreateIdentityParams) (Identity, error)
CreateReset(ctx context.Context, arg CreateResetParams) (PasswordReset, error)
2020-07-19 15:52:08 +02:00
DestroyEmail(ctx context.Context, address string) error
2020-07-21 22:50:11 +02:00
DestroyEmailConfirmation(ctx context.Context, emailAddress string) error
2020-07-19 15:52:08 +02:00
DestroyReset(ctx context.Context, selector string) error
GetEmailByAddress(ctx context.Context, address string) (Email, error)
2020-07-21 22:50:11 +02:00
GetEmailByIdentityID(ctx context.Context, identityID int64) ([]Email, error)
GetEmailConfirmationByAddress(ctx context.Context, emailAddress string) (EmailConfirmation, error)
GetEmailConfirmationBySelector(ctx context.Context, selector string) (EmailConfirmation, error)
GetIdentityByID(ctx context.Context, id int64) (Identity, error)
GetIdentityByLogin(ctx context.Context, login sql.NullString) (Identity, error)
GetIdentityByPrimaryEmail(ctx context.Context, address string) (GetIdentityByPrimaryEmailRow, error)
GetPrimaryEmailByIdentityID(ctx context.Context, identityID int64) (Email, error)
GetResetByIdentityID(ctx context.Context, identityID int64) (PasswordReset, error)
GetResetBySelector(ctx context.Context, selector string) (PasswordReset, error)
UpdateEmailPrimary(ctx context.Context, arg UpdateEmailPrimaryParams) error
UpdateEmailVerified(ctx context.Context, address string) error
UpdateIdentityLogin(ctx context.Context, id int64) error
UpdateIdentityPassphrase(ctx context.Context, id int64) error
2020-07-19 15:52:08 +02:00
}
var _ Querier = (*Queries)(nil)