SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ SQT_COLUMN_CUSTOM_2_DEFAULT

#define SQT_COLUMN_CUSTOM_2_DEFAULT ( COLUMN_NAME,
INSTANCE_NAME,
VALUE_SOURCE,
DEFAULT_VALUE )

Defines a column with a custom instance name and a default value that binds to the specified custom value source.

Parameters
COLUMN_NAMEThe name of the column in the database.
INSTANCE_NAMEThe name of the column instance.
VALUE_SOURCEA type that satisfies the sqt::ValueSourceType concept, which defines the value type and methods for retrieving and setting values in an entity instance.

This macro is similar to the SQT_COLUMN_CUSTOM_2 macro, except that it allows specifying a default value.

See also
SQT_COLUMN_CUSTOM_2