Documentation ¶
Index ¶
- type Builder
- func (b *Builder) BSONOptions(opts *options.BSONOptions) *Builder
- func (b *Builder) Build() *Database
- func (b *Builder) ReadConcern(rc *readconcern.ReadConcern) *Builder
- func (b *Builder) ReadPreference(rp *readpref.ReadPref) *Builder
- func (b *Builder) Registry(r *bsoncodec.Registry) *Builder
- func (b *Builder) WriteConcern(wc *writeconcern.WriteConcern) *Builder
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) BSONOptions ¶
func (b *Builder) BSONOptions(opts *options.BSONOptions) *Builder
BSONOptions configures optional BSON marshaling and unmarshaling behavior.
func (*Builder) ReadConcern ¶
func (b *Builder) ReadConcern(rc *readconcern.ReadConcern) *Builder
ReadConcern sets the value for the ReadConcern field.
func (*Builder) ReadPreference ¶
ReadPreference sets the value for the ReadPreference field.
func (*Builder) WriteConcern ¶
func (b *Builder) WriteConcern(wc *writeconcern.WriteConcern) *Builder
WriteConcern sets the value for the WriteConcern field.
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Aggregate ¶
func (d *Database) Aggregate(pipe aggregate.Pipeline) *executor.DatabaseAggregateExecutor
func (*Database) Collection ¶
func (d *Database) Collection(name string) *collection.Builder
Click to show internal directories.
Click to hide internal directories.