Encoding and Decoding BSON
-
See moreBSONEncoderfacilitates the encoding ofEncodablevalues into BSON.Declaration
Swift
public class BSONEncoder -
See moreBSONDecoderfacilitates the decoding of BSON into semanticDecodabletypes.Declaration
Swift
public class BSONDecoder -
Enum representing the various encoding/decoding strategy pairs for
Dates. Set these on aMongoClient,MongoDatabase, orMongoCollectionso that the strategies will be applied when convertingDatas between their BSON representations and their representations in (nonBSONDocument)Codabletypes.As per the BSON specification, the default strategy is to encode
Datas as BSON binary types with the generic binary subtype.See moreSee also
bsonspec.orgDeclaration
Swift
public enum DataCodingStrategy : RawRepresentable -
Enum representing the various encoding/decoding strategy pairs for
Dates. Set these on aMongoClient,MongoDatabase, orMongoCollectionso that the strategies will be applied when convertingDates between their BSON representations and their representations in (nonBSONDocument)Codabletypes.As per the BSON specification, the default strategy is to encode
Dates as BSON datetime objects.See moreSee also
bsonspec.orgDeclaration
Swift
public enum DateCodingStrategy : RawRepresentable -
Enum representing the various encoding/decoding strategy pairs for
Dates. Set these on aMongoClient,MongoDatabase, orMongoCollectionso that the strategies will be applied when convertingUUIDs between their BSON representations and their representations in (nonBSONDocument)Codabletypes.As per the BSON specification, the default strategy is to encode
UUIDs as BSON binary types with the UUID subtype.See moreSee also
bsonspec.orgDeclaration
Swift
public enum UUIDCodingStrategy : RawRepresentable -
Protocol indicating a set of options can be used to configure
See moreBSONEncoderandBSONDecoder.Declaration
Swift
public protocol CodingStrategyProvider -
Options struct used for configuring the coding strategies on
See moreBSONEncoderandBSONDecoder.Declaration
Swift
public struct BSONCoderOptions : CodingStrategyProvider
View on GitHub
Install in Dash
Encoding and Decoding BSON Reference