init(bson: BSON.DocumentDecoder<CodingKey>) throws
s5MongoAAO0A2QLE10TimeseriesV4bsonAE7BSONABI4BSONO12BSONDecodingE15DocumentDecoderVy_AE9CodingKeyOG_tKcfcWhat are these?
s5MongoAAO0A2QLE10TimeseriesV4bsonAE7BSONABI4BSONO12BSONDecodingE15DocumentDecoderVy_AE9CodingKeyOG_tKcfc
FNV24: [4UFGM]
enum CodingKey
enum Granularity
init(timeField: String, metaField: String?, granularity: Granularity)
let granularity: Granularity
let metaField: String?
let timeField: String
func encode(to: inout BSON.DocumentEncoder<CodingKey>)
import MongoQL
import Mongo
A single-type module that declares the Mongo namespace.
Mongo
@frozen struct Timeseries
enum Mongo
@frozen enum BSON
The namespace for all BSON types.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == String
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document.
Document
@frozen enum CodingKey
init(timeField: String, metaField: String? = nil, granularity: Granularity = .seconds)
func encode(to bson: inout BSON.DocumentEncoder<CodingKey>)
@frozen enum Granularity