SqlValue extension type

A typed value accepted by SQL statements and row codecs.

Drivers translate logical booleans and timestamps to their native wire representation. Binary values are not copied and must not be mutated while an operation is in flight.

on

Constructors

SqlValue.blob(Uint8List value)
Creates a binary value without copying value.
const
SqlValue.boolean(bool value)
Creates a logical boolean value.
const
SqlValue.integer(int value)
Creates an integer value.
const
SqlValue.nullValue()
Creates SQL NULL.
const
SqlValue.real(double value)
Creates a finite floating-point value.
factory
SqlValue.text(String value)
Creates a text value.
const
SqlValue.time(DateTime value)
Creates a timestamp normalized to UTC.
factory

Properties

isNull → bool
Whether this value represents SQL NULL.
no setter
value → Object?
The normalized logical value used by drivers and custom codecs.
no setter