Documentation ¶
Index ¶
- func CreateConnection(ctx context.Context, dbUrl string) *pgx.Conn
- type DBTX
- type Queries
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserById(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) UpsertUser(ctx context.Context, arg UpsertUserParams) (pgtype.UUID, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpsertUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConnection ¶
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func GetQueries ¶
func GetQueries() *Queries
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserById ¶
func (*Queries) UpsertUser ¶
type UpsertUserParams ¶
type User ¶
type User struct { ID pgtype.UUID `json:"id"` FullName string `json:"full_name"` Email string `json:"email"` PhoneNumber string `json:"phone_number"` ProfilePictureUrl string `json:"profile_picture_url"` Username string `json:"username"` HashedPassword string `json:"hashed_password"` CreatedAt pgtype.Timestamptz `json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.