Structureswift-mongodb 0.29.3MongoQL->Mongo
Storage
Mongo.CollectionStats.Storage.swift:8@frozen struct Storage@frozen struct Storageimport MongoA single-type module that declares the Mongo namespace.
import MongoQL@frozen struct CollectionStatsenum Mongoinit(bson: BSON.DocumentDecoder<CodingKey>) throws init(storage: Storage) let storage: Storage@frozen enum CodingKeyprotocol BSONDecodableA type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
protocol BSONDocumentDecodable<CodingKey> : BSONDecodableA type that can be decoded from a BSON dictionary-decoder.
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapableprotocol MasterCodingModel<CodingKey>A type that serves as a master coding model for a type of document in a MongoDB collection.
protocol Sendableinit(bson: BSON.DocumentDecoder<CodingKey>) throws init(storageFree: Int, storageSize: Int, logicalSize: Int, indexesSize: Int, indexSizes: OrderedDictionary<BSON.Key, Int>, count: Int) let count: IntThe number of documents in the collection.
let indexSizes: OrderedDictionary<BSON.Key, Int>The individual sizes of each of the collection’s indexes.
let indexesSize: IntThe total size of all the collection’s indexes.
let logicalSize: IntThe total uncompressed size of all the documents in the collection.
let storageFree: IntThe portion of storageSize that is available for reuse.
let storageSize: IntThe total compressed size of all the documents in the collection.
@frozen enum CodingKeyinit(bson: BSON.AnyValue) throws init(bson: BSON.Document) throws static subscript(key: CodingKey) -> Mongo.AnyKeyPath { get }