Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2025 Changes in this version + type DBProvider interface + DB func(ctx context.Context, wheres ...where.Where) *gorm.DB + type Logger interface + Error func(ctx context.Context, err error, message string, kvs ...any) + type Option func(*Store[T]) + func WithLogger[T any](logger Logger) Option[T] + type Store struct + func NewStore[T any](storage DBProvider, logger Logger) *Store[T] + func (s *Store[T]) Create(ctx context.Context, obj *T) error + func (s *Store[T]) DB(ctx context.Context, wheres ...where.Where) *gorm.DB + func (s *Store[T]) Delete(ctx context.Context, opts *where.Options) error + func (s *Store[T]) Get(ctx context.Context, opts *where.Options) (*T, error) + func (s *Store[T]) List(ctx context.Context, opts *where.Options) (count int64, ret []*T, err error) + func (s *Store[T]) Update(ctx context.Context, obj *T) error