Documentation
¶
Index ¶
- type Base
- func (db *Base) Collections() collection.Map
- func (db *Base) Drop(ctx context.Context) error
- func (db *Base) GetCollection(ctx context.Context, coll_name string, conn *connection.Base, ...) (*collection.Base, error)
- func (db *Base) ListCollectionNames(ctx context.Context, filter any) ([]string, error)
- func (db *Base) Name() string
- func (db *Base) NewCollection(name string) *mongo.Collection
- func (db *Base) RunCommand(ctx context.Context, command any) error
- type Inter
- type InterAdmin
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) Collections ¶
func (db *Base) Collections() collection.Map
func (*Base) GetCollection ¶
func (*Base) ListCollectionNames ¶ added in v0.1.47
func (*Base) NewCollection ¶ added in v0.1.47
func (db *Base) NewCollection(name string) *mongo.Collection
type Inter ¶ added in v0.1.47
type Inter interface { Name() string Collections() collection.Map GetCollection(ctx context.Context, coll_name string, conn *connection.Base, indexes ...rIndex.Inter) (*collection.Base, error) }
type InterAdmin ¶ added in v0.1.47
Click to show internal directories.
Click to hide internal directories.