Definition at line 113 of file SQLiteDB.h.
#include <SQLiteDB.h>
◆ column()
◆ ~column()
virtual KVSQLite::column::~column |
( |
| ) |
|
|
inlinevirtual |
◆ _type()
const char * KVSQLite::column::_type |
( |
| ) |
|
|
private |
◆ binary_data()
template<typename T >
T* KVSQLite::column::binary_data |
( |
| ) |
const |
|
inline |
◆ data()
◆ foreign_key()
bool KVSQLite::column::foreign_key |
( |
| ) |
const |
|
inline |
◆ get_data()
template<typename T >
T KVSQLite::column::get_data |
( |
| ) |
const |
|
inline |
◆ get_declaration()
const char * KVSQLite::column::get_declaration |
( |
| ) |
const |
return declaration for column, including type & constraint
Definition at line 334 of file SQLiteDB.cpp.
◆ index()
int KVSQLite::column::index |
( |
| ) |
const |
|
inline |
◆ init_type_map()
void KVSQLite::column::init_type_map |
( |
| ) |
|
|
private |
◆ is_null()
bool KVSQLite::column::is_null |
( |
| ) |
const |
|
inline |
◆ name()
const char* KVSQLite::column::name |
( |
| ) |
const |
|
inline |
◆ operator=()
template<typename T >
const column& KVSQLite::column::operator= |
( |
const T & |
x | ) |
|
|
inline |
◆ primary_key()
bool KVSQLite::column::primary_key |
( |
| ) |
const |
|
inline |
◆ print()
void KVSQLite::column::print |
( |
| ) |
const |
|
inline |
◆ set_binary_data() [1/2]
template<typename T >
void KVSQLite::column::set_binary_data |
( |
T & |
x | ) |
|
|
inline |
◆ set_binary_data() [2/2]
template<typename T >
void KVSQLite::column::set_binary_data |
( |
T * |
x | ) |
|
|
inline |
◆ set_constraint()
void KVSQLite::column::set_constraint |
( |
const TString & |
c | ) |
|
|
inline |
set constraint for column, one of:
PRIMARY KEY
UNIQUE
NOT NULL
#define CHECK(A, MIN, MAX)
Definition at line 211 of file SQLiteDB.h.
◆ set_data() [1/2]
◆ set_data() [2/2]
template<typename T >
void KVSQLite::column::set_data |
( |
const T & |
x | ) |
|
|
inline |
◆ set_data_from_statement()
set value of column according to value of parameter in statement
any column which has a NULL value will be given value 0, 0.0 or "" (for INTEGER
, REAL
or TEXT
type, respectively): use column::is_null() to check if this corresponds to a null column value.
- Parameters
-
idx | if given, use it as the statement parameter index instead of the column's index in the table (case where not all columns are treated in the statement) |
Definition at line 951 of file SQLiteDB.cpp.
◆ set_data_in_statement()
void KVSQLite::column::set_data_in_statement |
( |
TSQLStatement * |
s, |
|
|
int |
idx = -1 |
|
) |
| const |
set value of parameter in SQLite statement corresponding to this column
- Parameters
-
idx | if given, use it as the statement parameter index instead of the column's index in the table (case where not all columns are treated in the statement) |
Definition at line 908 of file SQLiteDB.cpp.
◆ set_foreign_key() [1/2]
void KVSQLite::column::set_foreign_key |
( |
const table & |
_table, |
|
|
const column & |
_column |
|
) |
| |
declare this column to be a foreign key i.e. linked to the given _column name in another _table
Definition at line 1010 of file SQLiteDB.cpp.
◆ set_foreign_key() [2/2]
void KVSQLite::column::set_foreign_key |
( |
const TString & |
_table, |
|
|
const TString & |
_column |
|
) |
| |
declare this column to be a foreign key i.e. linked to the given _column name in another _table
Definition at line 995 of file SQLiteDB.cpp.
◆ set_null()
void KVSQLite::column::set_null |
( |
| ) |
|
|
inline |
◆ type()
◆ type_name()
const char* KVSQLite::column::type_name |
( |
| ) |
const |
|
inline |
◆ table
◆ fBlob
void* KVSQLite::column::fBlob |
|
private |
◆ fBlobSize
Long_t KVSQLite::column::fBlobSize |
|
private |
◆ fConstraint
TString KVSQLite::column::fConstraint |
|
private |
◆ fData
◆ fFKcolumn
TString KVSQLite::column::fFKcolumn |
|
private |
◆ fFKtable
◆ fForeignKey
bool KVSQLite::column::fForeignKey |
|
private |
◆ fIndex
int KVSQLite::column::fIndex |
|
private |
◆ fIsNull
bool KVSQLite::column::fIsNull |
|
mutableprivate |
◆ fNameType
◆ fPrimaryKey
bool KVSQLite::column::fPrimaryKey |
|
private |
◆ inv_type_map
The documentation for this class was generated from the following files: