Documentation ¶
Index ¶
Constants ¶
View Source
const ( InsertUserQuery = ` INSERT INTO users (email, password, is_staff) VALUES ($1, $2, $3) RETURNING id ` FindUserByIdQuery = ` SELECT email, is_staff FROM users WHERE id = $1; ` FindByEmailUserQuery = ` SELECT id, email, password, is_staff FROM users WHERE email = $1; ` DeleteUserQuery = ` DELETE FROM users WHERE id = $1; ` )
Variables ¶
This section is empty.
Functions ¶
func NewUsersRepo ¶
func NewUsersRepo(db *sqlx.DB) domain.UserRepository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.