Structure
SQLiteDataEncoder
Translates
Encodable values into SQLiteData values suitable for use with an SQLiteDatabase.struct SQLiteDataEncoder
Overview
Types which conform to SQLiteDataConvertible are converted directly to SQLiteData. Other types are encoded as JSON and sent to the database as text.
Topics
Initializers
init()Initialize aSQLiteDataEncoderwith an unconfigured JSON encoder.init(json: JSONEncoder)Initialize aSQLiteDataEncoderwith a JSON encoder.
Instance Methods
func encode(any Encodable) throws -> SQLiteDataConvert the givenEncodablevalue to anSQLiteDatavalue, if possible.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype