Documentation ¶
Index ¶
- type CreateUserParams
- type DBTX
- type Exercise
- type Image
- type ListUsersRow
- type Queries
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteUser(ctx context.Context, id int32) error
- func (q *Queries) GetUser(ctx context.Context, id int32) (User, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Set
- type UpdateUserParams
- type User
- type Workout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type CreateUserParams struct { Username string PasswordHash string Email string Profile pqtype.NullRawMessage }
type ListUsersRow ¶
type ListUsersRow struct { ID int32 Username string Email string Profile pqtype.NullRawMessage }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (*Queries) ListUsers ¶
func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
type UpdateUserParams ¶
type UpdateUserParams struct { ID int32 Username string Email string Profile pqtype.NullRawMessage }
Click to show internal directories.
Click to hide internal directories.