Versions in this module Expand all Collapse all v2 v2.0.0 Dec 12, 2024 Changes in this version + type Aggregater interface + Aggregate func(ctx context.Context, pipeline interface{}, ...) (*mongo.Cursor, error) + type Collection struct + func (c *Collection) AggregateMany(ctx context.Context, pipeline interface{}, ...) *ManyResult + func (c *Collection) FindMany(ctx context.Context, filter interface{}, ...) *ManyResult + type Database struct + func NewDatabase(db *mongo.Database) *Database + func (db *Database) Collection(name string, opts ...options.Lister[options.CollectionOptions]) *Collection + func (db *Database) InitSequence(ctx context.Context, idName string, idValue int64) error + func (db *Database) NextSequence(ctx context.Context, idName string) (int64, error) + func (db *Database) NextSequences(ctx context.Context, idName string, size int64) (int64, error) + type Databases struct + func Open(ini IniFile, opts ...*options.ClientOptions) *Databases + func (d *Databases) Close(ctx context.Context) error + func (d *Databases) Get(ctx context.Context, name string, ...) (*Database, error) + type Finder interface + Find func(ctx context.Context, filter interface{}, ...) (*mongo.Cursor, error) + type IniFile interface + Get func(section string, name string) string + type ManyResult struct + func AggregateMany(ctx context.Context, aggregater Aggregater, pipeline interface{}, ...) *ManyResult + func FindMany(ctx context.Context, finder Finder, filter interface{}, ...) *ManyResult + func (a *ManyResult) Cursor() *mongo.Cursor + func (a *ManyResult) Decode(data interface{}) error + func (a *ManyResult) Err() error Other modules containing this package github.com/codeation/nosql