|
firfuorida 0.0.1
Qt based database migration library
|
Contains information about a single column, either to creaste or to modify. More...
#include <Firfuorida/Column>

Public Member Functions | |
| ~Column () override | |
| Deconstructs the Column object. | |
| void | after (const QString &otherColumn) |
| Put/move this column after otherColumn. | |
| Column * | autoIncrement (bool autoIncrement=true) |
| Enables or disables the auto increment feature for this column. | |
| void | change () |
| Mark this column as a column to change instead of creating it. | |
| Column * | charset (const QString &charset) |
| Sets the character set used for this column. | |
| Column * | collation (const QString &collation) |
| Sets the collation used for this column. | |
| Column * | comment (const QString &comment) |
| Add a comment to the column. | |
| Column * | defaultValue (const QVariant &defVal) |
| Sets the default value for this column. | |
| void | first () |
| Add/move this column to the beginning as first column. | |
| Column * | nullable (bool isNullable=true) |
| Sets the columns to nullable or not. | |
| Column * | onDelete (const QString &referenceOption) |
| Adds the onDelete action to a foreign key column. | |
| Column * | onUpdate (const QString &referenceOption) |
| Adds the onUpdate action to a foreign key column. | |
| Column * | primary (bool primary=true) |
| Makes the column a primary key column or not. | |
| Column * | unique (bool unique=true) |
| Makes the column a unique key column or not. | |
| Column * | unSigned (bool unSigned=true) |
| Sets the column to signed or unsigned. | |
Contains information about a single column, either to creaste or to modify.
The Column object can only be created by functions of the Table class.
example.cpp
|
overridedefault |
Deconstructs the Column object.
| void Column::after | ( | const QString & | otherColumn | ) |
Put/move this column after otherColumn.
| Column * Column::autoIncrement | ( | bool | autoIncrement = true | ) |
Enables or disables the auto increment feature for this column.
| void Column::change | ( | ) |
Mark this column as a column to change instead of creating it.
| Column * Column::charset | ( | const QString & | charset | ) |
Sets the character set used for this column.
| Column * Column::collation | ( | const QString & | collation | ) |
Sets the collation used for this column.
| Column * Column::comment | ( | const QString & | comment | ) |
Add a comment to the column.
1024 characters. | Column * Column::defaultValue | ( | const QVariant & | defVal | ) |
Sets the default value for this column.
| void Column::first | ( | ) |
Add/move this column to the beginning as first column.
| Column * Column::nullable | ( | bool | isNullable = true | ) |
Sets the columns to nullable or not.
| Column * Column::onDelete | ( | const QString & | referenceOption | ) |
Adds the onDelete action to a foreign key column.
| Column * Column::onUpdate | ( | const QString & | referenceOption | ) |
Adds the onUpdate action to a foreign key column.
| Column * Column::primary | ( | bool | primary = true | ) |
Makes the column a primary key column or not.
| Column * Column::unique | ( | bool | unique = true | ) |
Makes the column a unique key column or not.
| Column * Column::unSigned | ( | bool | unSigned = true | ) |
Sets the column to signed or unsigned.