Documentation
¶
Index ¶
- type DB
- type DBTX
- type InsertUserParams
- type NullUserRole
- type Querier
- type Queries
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) (uuid.UUID, error)
- func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) error
- func (q *Queries) SelectAllUsers(ctx context.Context, arg SelectAllUsersParams) ([]User, error)
- func (q *Queries) SelectUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) SelectUserByID(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SelectAllUsersParams
- type Session
- type UpdateUserParams
- type User
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB wraps the Querier interface and a pgxpool.Pool instance.
type InsertUserParams ¶
type NullUserRole ¶
func (*NullUserRole) Scan ¶
func (ns *NullUserRole) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { DeleteUser(ctx context.Context, id uuid.UUID) (uuid.UUID, error) InsertUser(ctx context.Context, arg InsertUserParams) error SelectAllUsers(ctx context.Context, arg SelectAllUsersParams) ([]User, error) SelectUserByEmail(ctx context.Context, email string) (User, error) SelectUserByID(ctx context.Context, id uuid.UUID) (User, error) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteUser ¶
func (*Queries) InsertUser ¶
func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) error
func (*Queries) SelectAllUsers ¶
func (*Queries) SelectUserByEmail ¶
func (*Queries) SelectUserByID ¶
func (*Queries) UpdateUser ¶
type SelectAllUsersParams ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.