queries

package
v0.0.2-0...-83fa1ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserQueries

type UserQueries struct {
	*sqlx.DB
}

UserQueries struct for queries from User model.

func (*UserQueries) CreateUser

func (q *UserQueries) CreateUser(u *models.User) error

CreateUser query for creating a new user by given email and password hash.

func (*UserQueries) GetUserByEmail

func (q *UserQueries) GetUserByEmail(email string) (models.User, error)

GetUserByEmail query for getting one User by given Email.

func (*UserQueries) GetUserByID

func (q *UserQueries) GetUserByID(id uuid.UUID) (models.User, error)

GetUserByID query for getting one User by given ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL