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

◆ SQT_COLUMN_ACCESSOR_2_DEFAULT

#define SQT_COLUMN_ACCESSOR_2_DEFAULT ( COLUMN_NAME,
INSTANCE_NAME,
GETTER,
SETTER,
DEFAULT_VALUE )

Defines a column with a custom instance name and a default value that binds to the specified accessor methods of the entity type.

Parameters
COLUMN_NAMEThe name of the column in the database.
INSTANCE_NAMEThe name of the column instance.
GETTERA const member function of the entity type that retrieves the column value from an entity instance.
SETTERA non-const member function of the entity type that assigns the column value to an entity instance.
DEFAULT_VALUEThe default value of the column.

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

See also
SQT_COLUMN_ACCESSOR_2