Encapsulation of Sqlite3/Spatialite table.
More...
#include <DatabaseColumn.h>
Encapsulation of Sqlite3/Spatialite table.
§ DbColumn() [1/2]
| agroeye::handlers::DbColumn::DbColumn |
( |
| ) |
|
|
inline |
§ DbColumn() [2/2]
| agroeye::handlers::DbColumn::DbColumn |
( |
const std::string & |
aName, |
|
|
const ColumnType & |
aType, |
|
|
bool |
isPrimary = false |
|
) |
| |
|
inline |
Constructor setting parameters of column.
Constructs empty column with
- Parameters
-
| aName | Name of the column |
| aType | Type of stored data |
| isPrimary | Is the column PK, FALSE by default |
§ getName()
| std::string agroeye::handlers::DbColumn::getName |
( |
| ) |
const |
|
inline |
Get the name of column.
- Returns
- Name of the column
§ getType()
| ColumnType agroeye::handlers::DbColumn::getType |
( |
| ) |
const |
|
inline |
Gets the type of data stored in column.
- Returns
- Type of data ColumnType
§ isPrimaryKey()
| bool agroeye::handlers::DbColumn::isPrimaryKey |
( |
| ) |
const |
|
inline |
Checks if column is primary key *.
- Returns
- if TRUE column is primary key, otherwise FALSE
The documentation for this class was generated from the following file: