#include <vdbl_database.h>
Public Member Functions | |
bool | create_table (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_tableflags &__f=_VDBL_tableflags()) |
bool | create_table (const char *_C_i, const _VDBL_userid &_C_u, const _VDBL_tableflags &__f=_VDBL_tableflags()) |
bool | drop_table (const std::string &_C_i, const _VDBL_userid &_C_u) |
bool | drop_table (const char *_C_i, const _VDBL_userid &_C_u) |
bool | has_table (const std::string &_C_i, const _VDBL_userid &_C_u) const |
bool | has_table (const char *_C_i, const _VDBL_userid &_C_u) const |
bool | create_view (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const std::string &_C_t, const _V_enum &__e) |
bool | create_view (const char *_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const std::string &_C_t, const _V_enum &__e) |
bool | create_view (const std::string &_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const char *_C_t, const _V_enum &__e) |
bool | create_view (const char *_C_i, const _VDBL_userid &_C_u, const _VDBL_context &__c, const char *_C_t, const _V_enum &__e) |
bool | drop_view (const std::string &_C_i, const _VDBL_userid &_C_u) |
bool | drop_view (const char *_C_i, const _VDBL_userid &_C_u) |
bool | has_view (const std::string &_C_i, const _VDBL_userid &_C_u) const |
bool | has_view (const char *_C_i, const _VDBL_userid &_C_u) const |
viewbase * | get_view (const std::string &_C_i, const _VDBL_userid &_C_u) const |
viewbase * | get_view (const char *_C_i, const _VDBL_userid &_C_u) const |
table * | get_table (const tableid &_C_i, const _VDBL_userid &_C_u) const |
table * | get_table (const std::string &_C_i, const _VDBL_userid &_C_u) const |
table * | get_table (const char *_C_i, const _VDBL_userid &_C_u) const |
_VDBL_tableid | get_tableid (const std::string &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_viewid | get_viewid (const std::string &_C_i, const _VDBL_userid &_C_u) const |
bool | drop_table (const _D_tables::iterator &__t, const _D_table_names::iterator &__tn, const _VDBL_userid &_C_u) |
bool | drop_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) |
bool | has_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_table * | get_table (const _VDBL_tableid &_C_i, const _VDBL_userid &_C_u) const |
bool | drop_view (const _D_views::iterator &__v, const _D_view_names::iterator &__vn, const _VDBL_userid &_C_u) |
bool | drop_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) |
bool | has_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) const |
_VDBL_view * | get_view (const _VDBL_viewid &_C_i, const _VDBL_userid &_C_u) const |
Protected Member Functions | |
_VDBL_tableid | get_tableid () |
_VDBL_userid | get_userid () |
_VDBL_viewid | get_viewid () |
Friends | |
class | _VDBL_viewdbase |
Definition at line 831 of file vdbl_database.h.
bool database::create_table | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_tableflags & | __f = _VDBL_tableflags() | |||
) | [inline] |
create a new table
_C_i:
name_C_u:
user id__f:
the table flags (if they are not default) return true
, if creating the table was successful. Definition at line 859 of file vdbl_database.h.
bool database::create_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_tableflags & | __f = _VDBL_tableflags() | |||
) | [inline] |
create a new table
_C_i:
name_C_u:
user id__f:
the table flags (if they are not default) return true
, if creating the table was successful. Reimplemented from _VDBL_database.
Definition at line 849 of file vdbl_database.h.
bool database::create_view | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_context & | __c, | |||
const char * | _C_t, | |||
const _V_enum & | __e | |||
) | [inline] |
create a new standard view with name _C_i
, evaluation context __c
, for table _C_t
, of type __e
. return true
if creating worked, and false
otherwise.
Definition at line 934 of file vdbl_database.h.
bool database::create_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_context & | __c, | |||
const char * | _C_t, | |||
const _V_enum & | __e | |||
) | [inline] |
create a new standard view with name _C_i
, evaluation context __c
, for table _C_t
, of type __e
. return true
if creating worked, and false
otherwise.
Definition at line 925 of file vdbl_database.h.
bool database::create_view | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_context & | __c, | |||
const std::string & | _C_t, | |||
const _V_enum & | __e | |||
) | [inline] |
create a new standard view with name _C_i
, evaluation context __c
, for table _C_t
, of type __e
. return true
if creating worked, and false
otherwise.
Definition at line 916 of file vdbl_database.h.
bool database::create_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u, | |||
const _VDBL_context & | __c, | |||
const std::string & | _C_t, | |||
const _V_enum & | __e | |||
) | [inline] |
create a new standard view with name _C_i
, evaluation context __c
, for table _C_t
, of type __e
. return true
if creating worked, and false
otherwise.
Reimplemented from _VDBL_database.
Definition at line 907 of file vdbl_database.h.
bool _VDBL_database::drop_table | ( | const _VDBL_tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline, inherited] |
delete a table, whose table id is provided. return true
, if deleting the table has worked.
Definition at line 496 of file vdbl_database.h.
bool _VDBL_database::drop_table | ( | const _D_tables::iterator & | __t, | |
const _D_table_names::iterator & | __tn, | |||
const _VDBL_userid & | _C_u | |||
) | [inline, inherited] |
bool database::drop_table | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a table, whose name is provided. return true
, if deleting the table has worked.
Definition at line 890 of file vdbl_database.h.
bool database::drop_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a table, whose name is provided. return true
, if deleting the table has worked.
Reimplemented from _VDBL_database.
Definition at line 884 of file vdbl_database.h.
bool _VDBL_database::drop_view | ( | const _VDBL_viewid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline, inherited] |
delete a view, whose id is provided. return true
, if deleting the table has worked.
Definition at line 729 of file vdbl_database.h.
bool _VDBL_database::drop_view | ( | const _D_views::iterator & | __v, | |
const _D_view_names::iterator & | __vn, | |||
const _VDBL_userid & | _C_u | |||
) | [inline, inherited] |
bool database::drop_view | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a view, whose name is provided. return true
, if deleting the view has worked.
Definition at line 953 of file vdbl_database.h.
bool database::drop_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | [inline] |
delete a view, whose name is provided. return true
, if deleting the view has worked.
Reimplemented from _VDBL_database.
Definition at line 947 of file vdbl_database.h.
_VDBL_table* _VDBL_database::get_table | ( | const _VDBL_tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline, inherited] |
return a pointer to the table with id _C_i
.
Definition at line 537 of file vdbl_database.h.
table* database::get_table | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the table with name _C_i
.
Definition at line 1008 of file vdbl_database.h.
table* database::get_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the table with name _C_i
.
Reimplemented from _VDBL_database.
Definition at line 1003 of file vdbl_database.h.
table* database::get_table | ( | const tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the table with id _C_i
.
Definition at line 998 of file vdbl_database.h.
_VDBL_tableid _VDBL_database::get_tableid | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline, inherited] |
return the table id for a given name
Definition at line 448 of file vdbl_database.h.
_VDBL_tableid _VDBL_database::get_tableid | ( | ) | [inline, protected, inherited] |
generate a new unique id for tables, views, and users
Definition at line 392 of file vdbl_database.h.
_VDBL_userid _VDBL_database::get_userid | ( | ) | [inline, protected, inherited] |
generate a new unique id for tables, views, and users
Definition at line 393 of file vdbl_database.h.
_VDBL_view* _VDBL_database::get_view | ( | const _VDBL_viewid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline, inherited] |
return a pointer to the view with id _C_i
.
Definition at line 769 of file vdbl_database.h.
viewbase* database::get_view | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the view with name _C_i
.
Definition at line 973 of file vdbl_database.h.
viewbase* database::get_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
return a pointer to the view with name _C_i
.
Reimplemented from _VDBL_database.
Definition at line 968 of file vdbl_database.h.
_VDBL_viewid _VDBL_database::get_viewid | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline, inherited] |
return the view id of view _C_i
.
Definition at line 661 of file vdbl_database.h.
_VDBL_viewid _VDBL_database::get_viewid | ( | ) | [inline, protected, inherited] |
generate a new unique id for tables, views, and users
Definition at line 394 of file vdbl_database.h.
bool _VDBL_database::has_table | ( | const _VDBL_tableid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline, inherited] |
check whether the table _C_i
exists
Definition at line 518 of file vdbl_database.h.
bool database::has_table | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the table _C_i
exists
Definition at line 900 of file vdbl_database.h.
bool database::has_table | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the table _C_i
exists
Reimplemented from _VDBL_database.
Definition at line 895 of file vdbl_database.h.
bool _VDBL_database::has_view | ( | const _VDBL_viewid & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline, inherited] |
check whether the view with id _C_i
exists
Definition at line 751 of file vdbl_database.h.
bool database::has_view | ( | const char * | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the view _C_i
exists
Definition at line 963 of file vdbl_database.h.
bool database::has_view | ( | const std::string & | _C_i, | |
const _VDBL_userid & | _C_u | |||
) | const [inline] |
check whether the view _C_i
exists
Reimplemented from _VDBL_database.
Definition at line 958 of file vdbl_database.h.