indexs

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ascending

func Ascending(fieldNames ...string) bsonx.Bson

func CompoundIndex

func CompoundIndex(indexes ...bsonx.Bson) bsonx.Bson

func CompoundIndexWithField

func CompoundIndexWithField(fieldNames []string, value bsonx.IBsonValue) bsonx.Bson

func Descending

func Descending(fieldNames ...string) bsonx.Bson

func Geo2D

func Geo2D(fieldName string) bsonx.Bson

func Geo2DSphere

func Geo2DSphere(fieldNames ...string) bsonx.Bson

func GeoHaystack

func GeoHaystack(fieldName string, additional bsonx.Bson) bsonx.Bson

func Hashed

func Hashed(fieldName string) bsonx.Bson

func Text

func Text(fieldName string) bsonx.Bson

func TextEveyFiled

func TextEveyFiled() bsonx.Bson

Types

type IndexModel

type IndexModel struct {
	// contains filtered or unexported fields
}

func NewIndexModel

func NewIndexModel(keys bsonx.Bson, options options.IndexOptions) IndexModel

func (IndexModel) GetKeys

func (m IndexModel) GetKeys() bsonx.Bson

func (IndexModel) GetOptions

func (m IndexModel) GetOptions() options.IndexOptions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL