Documentation ¶
Index ¶
- type CreateModelI
- type DeleteModelI
- type GetModelI
- type ListModelI
- type ListParams
- type ModelStore
- func (s *ModelStore) Create(ctx context.Context, m CreateModelI) error
- func (s *ModelStore) CreateIfNotExist(ctx context.Context, m UpdateCreateModelI) error
- func (s *ModelStore) Delete(ctx context.Context, m DeleteModelI) error
- func (s *ModelStore) Get(ctx context.Context, m GetModelI) (bool, error)
- func (s *ModelStore) List(ctx context.Context, params ListParams, ...) (int64, error)
- func (s *ModelStore) Update(ctx context.Context, m UpdateModelI) error
- func (s *ModelStore) UpdateOrCreate(ctx context.Context, m UpdateCreateModelI) error
- type UpdateCreateModelI
- type UpdateModelI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateModelI ¶
type DeleteModelI ¶ added in v2.0.7
type ListModelI ¶
type ListParams ¶
type ModelStore ¶
type ModelStore struct { Con *pgxpool.Pool QB squirrel.StatementBuilderType TableName string }
func (*ModelStore) Create ¶
func (s *ModelStore) Create(ctx context.Context, m CreateModelI) error
func (*ModelStore) CreateIfNotExist ¶
func (s *ModelStore) CreateIfNotExist(ctx context.Context, m UpdateCreateModelI) error
func (*ModelStore) Delete ¶
func (s *ModelStore) Delete(ctx context.Context, m DeleteModelI) error
func (*ModelStore) List ¶
func (s *ModelStore) List(ctx context.Context, params ListParams, itemConstructor func(add bool) ListModelI) (int64, error)
func (*ModelStore) Update ¶
func (s *ModelStore) Update(ctx context.Context, m UpdateModelI) error
func (*ModelStore) UpdateOrCreate ¶
func (s *ModelStore) UpdateOrCreate(ctx context.Context, m UpdateCreateModelI) error
type UpdateCreateModelI ¶
type UpdateCreateModelI interface { UpdateModelI CreateModelI }
Click to show internal directories.
Click to hide internal directories.