Documentation ¶
Index ¶
- func New[Entity any](ctx context.Context, db *mongo.Database) dbie.Repo[Entity]
- type Mongo
- func (core Mongo[Entity]) Close() error
- func (core Mongo[Entity]) Init() error
- func (core Mongo[Entity]) Insert(items ...Entity) error
- func (core Mongo[Entity]) InsertCtx(ctx context.Context, items ...Entity) error
- func (core Mongo[Entity]) SelectPage(page dbie.Page, field string, operator dbie.Op, val any, orders ...dbie.Sort) (dbie.Paginated[Entity], error)
- func (core Mongo[Entity]) SelectPageCtx(ctx context.Context, page dbie.Page, field string, operator dbie.Op, val any, ...) (items dbie.Paginated[Entity], err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.