Initializerswift-mongodb 0.29.3MongoQL->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?14SUFimport MongoA single-type module that declares the Mongo namespace.
import MongoQL@frozen struct CollectionBindingenum Mongo@frozen enum BSONThe namespace for all BSON types.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == StringA thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document.
@frozen struct KeyA 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: Collectionlet type: CollectionType