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
Shard
class.Declaration
Swift
public init( documentCount: Int = 0, createdAt: Date = Date(), updatedAt: Date = Date() )
Parameters
documentCount
The number of documents in the shard. Defaults to
0
.createdAt
The date and time when the shard was created. Defaults to the current date and time.
updatedAt
The date and time when the shard was last updated. Defaults to the current date and time.