BSONTimestamp
public struct BSONTimestamp : BSONValue, Equatable, Codable, Hashable
extension BSONTimestamp: Overwritable
A struct to represent the BSON Timestamp type.
-
A timestamp representing seconds since the Unix epoch.
Declaration
Swift
public let timestamp: UInt32
-
An incrementing ordinal for operations within a given second.
Declaration
Swift
public let increment: UInt32
-
Declaration
Swift
public init(timestamp: UInt32, inc: UInt32)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to: Encoder) throws