Documentation ¶
Index ¶
- type DBTX
- type Storage
- func (x *Storage) Create(ctx context.Context, u *us.User) (id uuid.UUID, err error)
- func (x *Storage) Delete(ctx context.Context, id uuid.UUID) error
- func (x *Storage) GetList(ctx context.Context, limit, offset int64, filter string) ([]us.User, error)
- func (x *Storage) Read(ctx context.Context, id uuid.UUID) (*us.User, error)
- func (x *Storage) Update(ctx context.Context, id uuid.UUID, u *us.User, fields ...string) error
- type StorageTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) // Prepare(ctx context.Context, name, sql string) (pgconn.StatementDescription, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row }
Click to show internal directories.
Click to hide internal directories.