Documentation
¶
Index ¶
- type Account
- type AccountRole
- type DB
- type DBTX
- type InsertAccountParams
- type NullAccountRole
- type Querier
- type Queries
- func (q *Queries) DeleteAccount(ctx context.Context, id uuid.UUID) (int64, error)
- func (q *Queries) InsertAccount(ctx context.Context, arg InsertAccountParams) error
- func (q *Queries) SelectAccountByEmail(ctx context.Context, email string) (Account, error)
- func (q *Queries) SelectAccountByID(ctx context.Context, id uuid.UUID) (Account, error)
- func (q *Queries) SelectAllAccounts(ctx context.Context, arg SelectAllAccountsParams) ([]Account, error)
- func (q *Queries) UpdateAccount(ctx context.Context, arg UpdateAccountParams) (Account, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SelectAllAccountsParams
- type Session
- type UpdateAccountParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type AccountRole ¶
type AccountRole string
const ( AccountRoleAdmin AccountRole = "admin" AccountRoleCustomer AccountRole = "customer" )
func (*AccountRole) Scan ¶
func (e *AccountRole) Scan(src interface{}) error
type DB ¶
DB wraps the Querier interface and a pgxpool.Pool instance.
type InsertAccountParams ¶
type NullAccountRole ¶
type NullAccountRole struct { AccountRole AccountRole Valid bool // Valid is true if AccountRole is not NULL }
func (*NullAccountRole) Scan ¶
func (ns *NullAccountRole) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { DeleteAccount(ctx context.Context, id uuid.UUID) (int64, error) InsertAccount(ctx context.Context, arg InsertAccountParams) error SelectAccountByEmail(ctx context.Context, email string) (Account, error) SelectAccountByID(ctx context.Context, id uuid.UUID) (Account, error) SelectAllAccounts(ctx context.Context, arg SelectAllAccountsParams) ([]Account, error) UpdateAccount(ctx context.Context, arg UpdateAccountParams) (Account, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteAccount ¶
func (*Queries) InsertAccount ¶
func (q *Queries) InsertAccount(ctx context.Context, arg InsertAccountParams) error
func (*Queries) SelectAccountByEmail ¶
func (*Queries) SelectAccountByID ¶
func (*Queries) SelectAllAccounts ¶
func (*Queries) UpdateAccount ¶
type SelectAllAccountsParams ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.