drift icon indicating copy to clipboard operation
drift copied to clipboard

Nullable Columns Without Defaults use `Value`

Open dickermoshe opened this issue 1 year ago • 3 comments

Nullable Columns Without Defaults

Why does this column need to be constructed with a Value e.g. create(title:Value("Pizza"))

TextColumn get title => text().nullable()();

It can be empty because a withDefault or clientDefault wasn't provided. So Value.empty() has the exact same effect as null.

dickermoshe avatar Sep 10 '24 13:09 dickermoshe