BSON Types

  • Enum representing a BSON value.

    See also

    bsonspec.org
    See more

    Declaration

    Swift

    public enum BSON
    extension BSON: ExpressibleByStringLiteral
    extension BSON: ExpressibleByBooleanLiteral
    extension BSON: ExpressibleByFloatLiteral
    extension BSON: ExpressibleByIntegerLiteral
    extension BSON: ExpressibleByDictionaryLiteral
    extension BSON: ExpressibleByArrayLiteral
    extension BSON: Equatable
    extension BSON: Hashable
    extension BSON: Codable
  • The possible types of BSON values and their corresponding integer values.

    See more

    Declaration

    Swift

    public enum BSONType : UInt8
  • A struct to represent the BSON Binary type.

    See more

    Declaration

    Swift

    public struct BSONBinary : BSONValue, Equatable, Codable, Hashable
  • A struct to represent the BSON Code type.

    See more

    Declaration

    Swift

    public struct BSONCode : BSONValue, Equatable, Codable, Hashable
  • A struct to represent BSON CodeWithScope.

    See more

    Declaration

    Swift

    public struct BSONCodeWithScope : BSONValue, Equatable, Codable, Hashable
  • A struct to represent the deprecated DBPointer type. DBPointers cannot be instantiated, but they can be read from existing documents that contain them.

    See more

    Declaration

    Swift

    public struct BSONDBPointer : BSONValue, Codable, Equatable, Hashable
  • A struct to represent the BSON Decimal128 type.

    See more

    Declaration

    Swift

    public struct BSONDecimal128 : BSONValue, Equatable, Codable, CustomStringConvertible
    extension BSONDecimal128: Hashable
    extension BSONDecimal128: Overwritable
  • A struct representing the BSON document type.

    See more

    Declaration

    Swift

    @dynamicMemberLookup
    public struct BSONDocument
    extension BSONDocument: Codable
    extension BSONDocument: Collection
    extension BSONDocument: Sequence
    extension BSONDocument: BSONValue
    extension BSONDocument: Equatable
    extension BSONDocument: CustomStringConvertible
    extension BSONDocument: ExpressibleByDictionaryLiteral
    extension BSONDocument: Hashable
  • A struct to represent the BSON ObjectID type.

    See more

    Declaration

    Swift

    public struct BSONObjectID : BSONValue, Equatable, CustomStringConvertible, Codable
    extension BSONObjectID: Hashable
    extension BSONObjectID: Overwritable
  • A struct to represent a BSON regular expression.

    See more

    Declaration

    Swift

    public struct BSONRegularExpression : BSONValue, Equatable, Codable, Hashable
  • A struct to represent the deprecated Symbol type. Symbols cannot be instantiated, but they can be read from existing documents that contain them.

    See more

    Declaration

    Swift

    public struct BSONSymbol : BSONValue, CustomStringConvertible, Codable, Equatable, Hashable
  • A struct to represent the BSON Timestamp type.

    See more

    Declaration

    Swift

    public struct BSONTimestamp : BSONValue, Equatable, Codable, Hashable
    extension BSONTimestamp: Overwritable