SQLitePrimitiveType
SQLite: Primitive Type
Enumerates each primitive type supported by SQLite; SQLite has a particularly restricted set of data primitives, to include:
TEXT
: A string type; encoding is set at the database level.INTEGER
: A 64-bit signed integer.REAL
: A floating-point value.BLOB
: A binary large object.
All high-level data types are expressed in one of the four types specified above.
Resolving by Symbol
The SQLite protocol supports both string names and integer identifiers for primitive types; the SQLitePrimitiveType
maps both.
Use the resolve method to map a symbol to a SQLitePrimitiveType
instance, and the symbol or number properties to obtain the string or numeric representation.
Types
Companion object which offers methods (via resolve) to obtain a SQLitePrimitiveType by its string or numeric identity.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.