DriftAny class final

A drift type around a SQL value with an unknown type.

In STRICT tables, a column can be declared with the type ANY. In such column, any value can be stored without sqlite3 (or drift) attempting to cast it to a specific type. Thus, the rawSqlValue is directly passed to or from the underlying SQL database package.

To write a custom value into the database with DriftAny, you can construct it and pass it into a Variable or into a companion of a table having a column with an ANY type.

Constructors

DriftAny(Object rawSqlValue)
Constructs a DriftAny wrapper around the rawSqlValue that will be written into the database without any modification by drift.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
rawSqlValue Object
The direct, unmodified SQL value being wrapped by this DriftAny instance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAs<T extends Object>(BaseSqlType<T> type, SqlTypes types) → T
Interprets the rawSqlValue as a drift type under the configuration given by types.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override