Documentation ¶
Index ¶
- type RecordRepoImpl
- func (r *RecordRepoImpl) CheckIfExistsByID(ctx context.Context, id string) (bool, error)
- func (s *RecordRepoImpl) CountByFilter(ctx context.Context, f *domain.RecordFilter) (uint64, error)
- func (s *RecordRepoImpl) DeleteByID(ctx context.Context, id string) error
- func (r *RecordRepoImpl) GetByID(ctx context.Context, id string) (*domain.Record, error)
- func (r *RecordRepoImpl) GetByUUID(ctx context.Context, uid string) (*domain.Record, error)
- func (r *RecordRepoImpl) Insert(ctx context.Context, m *domain.Record) error
- func (r *RecordRepoImpl) InsertOrUpdateByID(ctx context.Context, m *domain.Record) error
- func (s *RecordRepoImpl) ListByFilter(ctx context.Context, f *domain.RecordFilter) ([]*domain.Record, error)
- func (r *RecordRepoImpl) UpdateByID(ctx context.Context, m *domain.Record) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordRepoImpl ¶
type RecordRepoImpl struct {
// contains filtered or unexported fields
}
func NewRecordRepoImpl ¶
func NewRecordRepoImpl(db *sql.DB) *RecordRepoImpl
func (*RecordRepoImpl) CheckIfExistsByID ¶
func (*RecordRepoImpl) CountByFilter ¶
func (s *RecordRepoImpl) CountByFilter(ctx context.Context, f *domain.RecordFilter) (uint64, error)
func (*RecordRepoImpl) DeleteByID ¶
func (s *RecordRepoImpl) DeleteByID(ctx context.Context, id string) error
func (*RecordRepoImpl) InsertOrUpdateByID ¶
func (*RecordRepoImpl) ListByFilter ¶
func (s *RecordRepoImpl) ListByFilter(ctx context.Context, f *domain.RecordFilter) ([]*domain.Record, error)
func (*RecordRepoImpl) UpdateByID ¶
Click to show internal directories.
Click to hide internal directories.