Documentation ¶
Index ¶
- type CreateUserParams
- type DBTX
- type GetUserByEmailRow
- type GetUserByIdRow
- type Queries
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteUser(ctx context.Context, id string) error
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
- func (q *Queries) GetUserById(ctx context.Context, id string) (GetUserByIdRow, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) UserExists(ctx context.Context, id string) (bool, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type CreateUserParams struct { ID string Email string Username string PasswordHash string Bio sql.NullString ImageUrl sql.NullString }
type GetUserByEmailRow ¶
type GetUserByEmailRow struct { ID string Email string Username string Bio sql.NullString PasswordHash string ImageUrl sql.NullString UpdatedAt time.Time }
type GetUserByIdRow ¶
type GetUserByIdRow struct { ID string Email string Username string Bio sql.NullString PasswordHash string ImageUrl sql.NullString UpdatedAt time.Time }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserById ¶
func (*Queries) UpdateUser ¶
func (*Queries) UserExists ¶
type UpdateUserParams ¶
type UpdateUserParams struct { ID string UpdatedAt time.Time Email sql.NullString PasswordHash sql.NullString Bio sql.NullString ImageUrl sql.NullString }
Click to show internal directories.
Click to hide internal directories.