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
struct SQLiteCustomFunctionUnexpectedValueTypeErrorThe error thrown byinit(sqliteValue:)if ansqlite3_valuehas an unknown type.
Enumeration Cases
case blob(ByteBuffer)BLOBaffinity, represented in Swift byByteBuffer.case float(Double)REALaffinity, represented in Swift byDouble.case integer(SQLiteInt64)INTEGERaffinity, represented in Swift byInt.case nullANULLvalue.case text(String)TEXTaffinity, represented in Swift byString.
Instance Properties
var blob: ByteBuffer?Returns the data as a blob, if it hasBLOBaffinity.var bool: Bool?Returns the boolean value of the data, where possible.var description: StringA textual representation of this instance.var double: Double?Returns the real number value of the data, performing conversions where possible.var integer: SQLiteInt64?Returns the integer value of the data, performing conversions where possible.var isNull: Booltrueif the value isNULL,falseotherwise.var string: String?Returns the textual value of the data, performing conversions where possible.
Instance Methods
func encode(to: any Encoder) throwsEncodes this value into the given encoder.
Relationships
Conforms To
Swift.CustomStringConvertibleSwift.EncodableSwift.EquatableSwift.SendableSwift.SendableMetatype