Initializerswift-mongodb 0.27.0MongoQL->Mongo
init(bson:)
Mongo.CollectionBinding.swift:24init(bson: BSON.DocumentDecoder<BSON.Key>) throws
init(bson: BSON.DocumentDecoder<BSON.Key>) throws
s5MongoAAO0A2QLE17CollectionBindingV4bsonAE7BSONABI4BSONO12BSONDecodingE15DocumentDecoderVy_AI3KeyVG_tKcfc
What are these?
FNV24: [14SUF]
import MongoQL
import Mongo
A single-type module that declares the Mongo
namespace.
@frozen struct CollectionBinding
enum Mongo
@frozen enum BSON
The namespace for all BSON types.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == String
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document
.
@frozen struct Key
A BSON field key. This type wraps a rawValue
that is guaranteed to never contain null bytes. (Null bytes in a BSON field key can be exploited to perform SQL injection.)
init(collection: Collection, type: CollectionType)
let collection: Collection
let type: CollectionType