Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FindManyOptions ¶
type FindOptions ¶
type FindOptions struct {
Relations []string
}
type Repository ¶
type Repository[T any] interface { Exists(context.Context, entity.Clause) (bool, error) Count(context.Context, entity.Clause) (int, error) FindMany(context.Context, entity.Clause, FindManyOptions) ([]*T, error) Find(context.Context, entity.Clause, FindOptions) (*T, error) Create(context.Context, *T) (*T, error) Update(context.Context, *T) error Delete(context.Context, entity.Clause) error }
Click to show internal directories.
Click to hide internal directories.