DatabaseColumn<T, R> class
abstract
Base class of declaring column, must to be const
T
- type of data represents in DartR
- type of data represents in database (this must be one of int, double, String, Uint8List)
data levels:
json
- Json representation of contains valuebin
- bytes representation of contains valuedart
-T
dart representation of contains valueraw
-R
database representation of contains valuedb
-R
? contained directly in db of this column
- Implementers
- Annotations
-
- @immutable
Constructors
Properties
- columnDefinition → String
-
Column definition for sqlite3
no setter
- constraints → String
-
Constraints of that column
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexed → bool
-
Needs to create index for this column
final
- name → String
-
Column name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Declared type of column
final
- unique → bool
-
Unique values in column
final
Methods
-
binRead(
BinaryReader reader) → R -
Read
raw
database value fromreader
-
binWrite(
R value, BinaryWriter writer) → void -
Wrtie
raw
database value towriter
-
dartDecode(
T value) → R -
Converting
T
dart
object toraw
database value -
dartEncode(
R value) → T -
Converting
raw
database value toT
dart
object -
databaseLoadMutator(
R? value) → R -
Mutate
db
value after select toraw
value -
databaseSaveMutator(
R value) → R? -
Mutate
raw
value todb
before insert it to database -
jsonDecode(
Object? value) → R -
Converting
json
toraw
database value -
jsonEncode(
R value) → Object? -
Converting
raw
database value tojson
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited