Definition at line 54 of file SQLiteDB.h.
#include <SQLiteDB.h>
◆ default_time
Enumerator |
---|
CURRENT_DATE | |
CURRENT_TIME | |
CURRENT_TIMESTAMP | |
Definition at line 87 of file SQLiteDB.h.
◆ column()
◆ ~column()
virtual KVSQLite::column::~column |
( |
| ) |
|
|
inlinevirtual |
clean up binary data
Definition at line 92 of file SQLiteDB.h.
◆ _type()
TString KVSQLite::column::_type |
( |
| ) |
|
|
private |
◆ binary_data()
template<typename T >
T* KVSQLite::column::binary_data |
( |
| ) |
const |
|
inline |
◆ data()
◆ DEFAULT() [1/4]
set DEFAULT string value
Definition at line 238 of file SQLiteDB.h.
◆ DEFAULT() [2/4]
◆ DEFAULT() [3/4]
column& KVSQLite::column::DEFAULT |
( |
double |
d | ) |
|
|
inline |
set DEFAULT floating value
Definition at line 230 of file SQLiteDB.h.
◆ DEFAULT() [4/4]
column& KVSQLite::column::DEFAULT |
( |
int |
i | ) |
|
|
inline |
set DEFAULT signed integer value
Definition at line 222 of file SQLiteDB.h.
◆ get_data()
template<typename T >
T KVSQLite::column::get_data |
( |
| ) |
const |
|
inline |
◆ get_data_string_for_insert()
TString KVSQLite::column::get_data_string_for_insert |
( |
| ) |
|
write data in string; for TEXT data we enclose in single quotes
we also replace any "'" with "''" (otherwise SQL error on insert)
Definition at line 1489 of file SQLiteDB.cpp.
◆ get_declaration()
TString KVSQLite::column::get_declaration |
( |
| ) |
const |
return declaration for column, including type & constraint
the name of the column is enclosed in double-quotes, in case it is the same as an SQL keyword
Definition at line 503 of file SQLiteDB.cpp.
◆ get_table()
TString KVSQLite::column::get_table |
( |
| ) |
const |
|
inline |
return name of parent table
Definition at line 119 of file SQLiteDB.h.
◆ 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 |
◆ Name()
TString KVSQLite::column::Name |
( |
| ) |
const |
|
inline |
◆ NOT_NULL()
column& KVSQLite::column::NOT_NULL |
( |
| ) |
|
|
inline |
◆ operator=()
template<typename T >
const column& KVSQLite::column::operator= |
( |
const T & |
x | ) |
|
|
inline |
◆ print()
void KVSQLite::column::print |
( |
| ) |
const |
|
inline |
◆ rowid_alias()
bool KVSQLite::column::rowid_alias |
( |
| ) |
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:
CHECK
NOT NULL
column & DEFAULT(default_time t)
Definition at line 179 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()
void KVSQLite::column::set_data_from_statement |
( |
TSQLStatement * |
s, |
|
|
int |
idx = -1 |
|
) |
| const |
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 1443 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 1399 of file SQLiteDB.cpp.
◆ set_null()
void KVSQLite::column::set_null |
( |
| ) |
|
|
inline |
◆ set_rowidalias()
void KVSQLite::column::set_rowidalias |
( |
| ) |
|
|
inline |
◆ set_table()
void KVSQLite::column::set_table |
( |
const TString & |
name | ) |
|
|
inline |
◆ type()
◆ type_name()
const char* KVSQLite::column::type_name |
( |
| ) |
const |
|
inline |
◆ TypeName()
TString KVSQLite::column::TypeName |
( |
| ) |
const |
|
inline |
◆ UNIQUE()
column& KVSQLite::column::UNIQUE |
( |
| ) |
|
|
inline |
◆ database
◆ fBlob
void* KVSQLite::column::fBlob |
|
mutableprivate |
◆ fBlobSize
Long_t KVSQLite::column::fBlobSize |
|
mutableprivate |
◆ fConstraint
TString KVSQLite::column::fConstraint |
|
private |
◆ fData
◆ fIndex
int KVSQLite::column::fIndex |
|
private |
◆ fIsNull
bool KVSQLite::column::fIsNull |
|
mutableprivate |
◆ fIsROWIDAlias
bool KVSQLite::column::fIsROWIDAlias |
|
private |
◆ fNameType
◆ fTable
◆ has_data
bool KVSQLite::column::has_data |
|
private |
◆ inv_type_map