Documentation ¶
Index ¶
- func NewConn(dsn string) (*sql.DB, error)
- type AddUserParams
- type DBTX
- type FindRegistrationUserRow
- type Queries
- func (q *Queries) AddUser(ctx context.Context, arg AddUserParams) error
- func (q *Queries) FindRegistrationUser(ctx context.Context, email string) (FindRegistrationUserRow, error)
- func (q *Queries) GetRegistrationUsers(ctx context.Context) ([]User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RegistrationUserExecutor
- type RegistrationUserQueryExecutor
- type User
- type UserFindStore
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddUserParams ¶
type FindRegistrationUserRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) FindRegistrationUser ¶
func (*Queries) GetRegistrationUsers ¶
type RegistrationUserExecutor ¶
type RegistrationUserExecutor interface {
AddUserIfNotExists(ctx context.Context, param AddUserParams) error
}
RegistrationUserExecutor is Query Executor
type UserFindStore ¶
type UserFindStore struct { *Queries // contains filtered or unexported fields }
func NewUserFindStore ¶
func NewUserFindStore(db *sql.DB) *UserFindStore
type UserStore ¶
type UserStore struct { *Queries // contains filtered or unexported fields }
func NewUserStore ¶
func (*UserStore) AddUserIfNotExists ¶
func (us *UserStore) AddUserIfNotExists(ctx context.Context, param AddUserParams) error
AddUserIfNotExists is a return active registration users
Click to show internal directories.
Click to hide internal directories.