BSON Types

  • Enum representing a BSON value.

    See also

    bsonspec.org
    See more

    Declaration

    Swift

    public enum BSON
    extension BSON: ExpressibleByIntegerLiteral
    extension BSON: ExpressibleByFloatLiteral
    extension BSON: ExpressibleByBooleanLiteral
    extension BSON: ExpressibleByDictionaryLiteral
    extension BSON: ExpressibleByStringLiteral
    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 : Equatable, Hashable
  • A struct to represent the BSON Code type.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public struct BSONCodeWithScope : Equatable, 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 : Equatable, Hashable
  • A struct to represent the BSON Decimal128 type.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public struct BSONRegularExpression : Equatable, 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, Equatable, Hashable
  • A struct to represent the BSON Timestamp type. This type is for internal MongoDB use. For most cases, in application development, you should use the BSON date type (represented in this library by Date.)

    See more

    Declaration

    Swift

    public struct BSONTimestamp : BSONValue, Equatable, Hashable