Public Member Functions | |
Sar_Dbi (std::string prefix="") | |
virtual void | initialize_tables (std::string classname)=0 |
int | next_id (std::string classname) |
bool | exists (std::string classname, int id) |
void | make_existing (std::string classname, int id) |
int | current_id (std::string classname) |
void | delete_record (int id, std::string classname) |
void | delete_records (std::string classname) |
void | get (int id, std::string classname, SarMap< std::string > &values) |
void | get (int id, std::string classname, SarMap< int > &values) |
void | get (int id, std::string classname, SarMap< DateTime > &values) |
void | get (int id, std::string classname, std::string related_classname, SarVector< int > &related) |
void | get (int id, std::string classname, SarMap< SarVector< int > > &sm) |
void | set (int id, std::string classname, SarMap< std::string > values, bool isinsert) |
void | set (int id, std::string classname, SarMap< int > values, bool isinsert) |
void | set (int id, std::string classname, SarMap< DateTime > values, bool isinsert) |
void | set (int id, std::string classname, SarVector< int > related, std::string related_classname) |
void | del (int id, std::string classname, SarVector< std::string > keys, coltype ct) |
void | del (int id, std::string classname, SarVector< int > related, std::string related_classname) |
void | get (std::string classname, SarVector< int > &results) |
void | get_where (std::string classname, std::string key, Where *where, SarVector< int > &results) |
virtual void | where_to_string (Where *where, std::string &swhere) |
SarVector< Row > | select (std::string table, SarVector< KVT > cols, Q qwhere, bool distinct=false) |
virtual SarVector< Row > | select (std::string table, SarVector< KVT > cols, std::string where="", bool distinct=false)=0 |
void | update (std::string table, SarVector< KVT > cols, Q qwhere) |
virtual void | update (std::string table, SarVector< KVT > cols, std::string where="")=0 |
void | remove (std::string table, Q qwhere) |
virtual void | remove (std::string table, std::string where="")=0 |
virtual void | insert (std::string table, SarVector< KVT > cols)=0 |
virtual void | execute (std::string query)=0 |
bool | table_is_initialized (std::string tablename) |
Static Public Member Functions | |
static Sar_Dbi * | makeStorage (std::string config, std::string prefix="") |
static SarMap< std::string > | parseconfig (std::string config) |
Public Attributes | |
std::string | table_prefix |
SarVector< std::string > | initialized_tables |
Static Public Attributes | |
static Sar_Dbi * | dbi |