Enumeration
SQLiteData
Encapsulates a single data item provided by or to SQLite.
enum SQLiteData
Overview
SQLite supports four data type “affinities” - INTEGER, REAL, TEXT, and BLOB - plus the NULL value, which has no innate affinity.
Topics
Structures
SQLiteData.SQLiteCustomFunctionUnexpectedValueTypeErrorThe error thrown byinit(sqliteValue:)if ansqlite3_valuehas an unknown type.
Enumeration Cases
SQLiteData.blob(_:)BLOBaffinity, represented in Swift byByteBuffer.SQLiteData.float(_:)REALaffinity, represented in Swift byDouble.SQLiteData.integer(_:)INTEGERaffinity, represented in Swift byInt.SQLiteData.nullANULLvalue.SQLiteData.text(_:)TEXTaffinity, represented in Swift byString.
Instance Properties
blobReturns the data as a blob, if it hasBLOBaffinity.boolReturns the boolean value of the data, where possible.descriptionA textual representation of this instance.doubleReturns the real number value of the data, performing conversions where possible.integerReturns the integer value of the data, performing conversions where possible.isNulltrueif the value isNULL,falseotherwise.stringReturns the textual value of the data, performing conversions where possible.
Instance Methods
encode(to:)Encodes this value into the given encoder.
Relationships
Conforms To
Swift.CustomStringConvertibleSwift.EncodableSwift.EquatableSwift.SendableSwift.SendableMetatype