Module
sqliter/value
src/sqliter/value.pookaSQLite values retain their storage classes through binding and decoding.
API reference
class Value
One SQLite storage value. NULL, empty text, and empty blobs stay distinct.
class Null is Value
class Integer(value: Int) is Value
A signed 64-bit SQLite integer. The binder checks the range.
value: Int
INFERRED
Int
INFERRED
fn(Int) -> sqliter/value.Integerclass Real(value: Float) is Value
value: Float
INFERRED
Float
INFERRED
fn(Float) -> sqliter/value.Realclass Text(value: String) is Value
UTF-8 text. SQLite receives its byte length, including any embedded NUL.
value: String
INFERRED
String
INFERRED
fn(String) -> sqliter/value.Textclass Blob(value: BitArray) is Value
Raw bytes. The binder rejects bit arrays that end mid-byte.
value: BitArray
INFERRED
BitArray
INFERRED
fn(BitArray) -> sqliter/value.Blobclass Parameters
class Positional(values: List(Value)) is Parameters
Parameters in SQLite slot order.
value.Positional([value.Integer(42), value.Text("A note")])
values: List(Value)
INFERRED
List(sqliter/value.Value)
INFERRED
fn(List(sqliter/value.Value)) -> sqliter/value.Positionalclass Named(values: List(#(String, Value))) is Parameters
Parameters keyed by their full SQL name, including the prefix.
value.Named([#(":id", value.Integer(42))])
values: List(#(String, Value))
INFERRED
List(#(String, sqliter/value.Value))
INFERRED
fn(List(#(String, sqliter/value.Value))) -> sqliter/value.Namednone() -> Parameters
INFERRED
fn() -> sqliter/value.ParametersAn empty positional parameter list for statements with no placeholders.