Documentation
¶
Index ¶
- Variables
- type Service
- func (s *Service[T]) Delete(ctx context.Context, query string, args ...any) error
- func (s *Service[T]) Find(ctx context.Context, query string, args ...any) ([]T, int, error)
- func (s *Service[T]) FindOne(ctx context.Context, query string, args ...any) (*T, error)
- func (s *Service[T]) Insert(ctx context.Context, model *T) error
- func (s *Service[T]) Update(ctx context.Context, model *T, columns []string, query string, args ...any) error
- func (s *Service[T]) UpdatePk(ctx context.Context, model *T, columns []string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRecordAlreadyExists = errors.New("record already exists")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.