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.

Entries

Link copied to clipboard

The TEXT data type is a string type; encoding is set at the database level.

Link copied to clipboard

The INTEGER data type is stored as a 64-bit signed integer-capable value.

Link copied to clipboard

The REAL data type is a floating-point value.

Link copied to clipboard

The BLOB data type is a binary large object.

Types

Link copied to clipboard

Companion object which offers methods (via resolve) to obtain a SQLitePrimitiveType by its string or numeric identity.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val number: Int
Link copied to clipboard
Link copied to clipboard
open override val symbol: String

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.