Documentation ¶
Index ¶
- type UserRepositoryPostgreSQL
- func (r *UserRepositoryPostgreSQL) DeleteOne(ctx context.Context, userId int64) error
- func (r *UserRepositoryPostgreSQL) GetAll(ctx context.Context) ([]*user.User, error)
- func (r *UserRepositoryPostgreSQL) GetOneById(ctx context.Context, userId int64) (*user.User, error)
- func (r *UserRepositoryPostgreSQL) InsertMany(ctx context.Context, users []user.User) error
- func (r *UserRepositoryPostgreSQL) InsertOne(ctx context.Context, user user.User) (*user.User, error)
- func (r *UserRepositoryPostgreSQL) UpdateOneById(ctx context.Context, userId int64, user user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepositoryPostgreSQL ¶
type UserRepositoryPostgreSQL struct {
// contains filtered or unexported fields
}
func NewUserRepositoryPostgreSQL ¶
func NewUserRepositoryPostgreSQL(db *sql.DB) *UserRepositoryPostgreSQL
func (*UserRepositoryPostgreSQL) DeleteOne ¶
func (r *UserRepositoryPostgreSQL) DeleteOne(ctx context.Context, userId int64) error
func (*UserRepositoryPostgreSQL) GetOneById ¶
func (*UserRepositoryPostgreSQL) InsertMany ¶
func (*UserRepositoryPostgreSQL) UpdateOneById ¶
Click to show internal directories.
Click to hide internal directories.