vibe-d v0.9.8-alpha.3 (2023-10-20T08:14:46Z)
Home
Dub
Repo
MongoCollection.ensureIndex
index
vibe
db
mongo
collection
MongoCollection
Undocumented in source. Be warned that the author may not have intended to support it.
void
ensureIndex
(const(Tuple!(string, int))[] field_orders, IndexFlags flags, Duration expire_time)
struct
MongoCollection
deprecated
@
safe
void
ensureIndex
(
scope
const
(
Tuple
!(
string
,
int
))[]
field_orders
,
IndexFlags
flags
=
IndexFlags.none
,
Duration
expire_time
= 0.
seconds
)
void
ensureIndex
(int[string] field_orders, IndexFlags flags, ulong expireAfterSeconds)
Meta
Source
See Implementation
index
vibe
db
mongo
collection
MongoCollection
aliases
getIndexes
constructors
this
functions
aggregate
count
countDocuments
createIndex
createIndexes
deleteAll
deleteImpl
deleteMany
deleteOne
distinct
drop
dropIndex
dropIndexes
ensureIndex
estimatedDocumentCount
find
findAndModify
findAndModifyExt
findOne
insert
insertMany
insertOne
listIndexes
remove
replaceOne
update
updateImpl
updateMany
updateOne
properties
database
name