SerializationFormat
public enum SerializationFormat : String, CaseIterable, Codable, Sendable
Specifies the wire format used to serialize and deserialize documents.
NyaruDB supports two formats:
.json: Standard JSON, produced and consumed byJSONEncoder/JSONDecoder..msgpack: MessagePack, a compact binary format, produced and consumed byMsgPackEncoder/MsgPackDecoderfrom the SwiftMsgpack package.
The format is stored in the collection manifest and is immutable after collection creation — changing it would make existing records unreadable.
View on GitHub