Define a basic column for a database table
Column.Rd
Define a basic column for a database table
Arguments
- type
SQL data type (e.g. "INTEGER", "TEXT", "DATE")
- default
Optional default value (no SQL default if NULL)
- primary_key
Logical, whether this is part of the primary key. NULL (default) means unspecified.
- nullable
Logical, whether NULLs are allowed. NULL (default) means unspecified.
- unique
Logical, whether the column has a UNIQUE constraint. NULL (default) means unspecified.
- ...
Reserved for extras like CHECK, COLLATE, etc.