allowNull

Allow null for a specific field that is not typed as Nullable!T.

One can either assign a value to use as the NULL value, or simply tag a member with the @allowNull function alias. In the latter case, the .init value of the column type is used as the NULL value.

This attribute ONLY applies on reading data. Inserting data using a blueprint or model will not translate the NULL value sentinel to an insert of NULL. However, using standard set calls, you can still set the value to NULL.

allowNull
(
T
)
(
T val
)

Meta