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

◆ SQT_COLUMN_ACCESSOR_2

#define SQT_COLUMN_ACCESSOR_2 ( COLUMN_NAME,
INSTANCE_NAME,
GETTER,
SETTER )

Defines a column with a custom instance name 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.

This macro is similar to the SQT_COLUMN_ACCESSOR macro, except that it allows specifying a custom name for the column instance. This is useful in scenarios where the auto-generated instance name would conflict with other names generated by the framework.

See also
SQT_COLUMN_ACCESSOR
SQT_COLUMN_FIELD_2