ShardMetadata
public struct ShardMetadata : Codable
A structure that represents metadata for a shard in the database.
ShardMetadata contains information about the shard, such as the number of documents it holds,
and timestamps for when it was created and last updated.
- Properties:
- documentCount: The total number of documents stored in the shard.
- createdAt: The date and time when the shard was created.
- updatedAt: The date and time when the shard was last updated.
-
Undocumented
Declaration
Swift
public var documentCount: Int -
Undocumented
Declaration
Swift
public var createdAt: Date -
Undocumented
Declaration
Swift
public var updatedAt: Date -
Initializes a new instance of the
Shardclass.Declaration
Swift
public init( documentCount: Int = 0, createdAt: Date = Date(), updatedAt: Date = Date() )Parameters
documentCountThe number of documents in the shard. Defaults to
0.createdAtThe date and time when the shard was created. Defaults to the current date and time.
updatedAtThe date and time when the shard was last updated. Defaults to the current date and time.
View on GitHub