|
Public Types |
| enum | support_enum {
SUPPORTS_AUTOINCCOLUMN = 1,
SUPPORTS_BOOLCOLUMN = 2,
SUPPORTS_DATECOLUMN = 3,
SUPPORTS_TIMECOLUMN = 4,
SUPPORTS_DATETIMECOLUMN = 5,
SUPPORTS_BINARYCOLUMN = 6,
SUPPORTS_MEMOCOLUMN = 7,
SUPPORTS_TIMESTAMPCOLUMN = 8,
SUPPORTS_SQL = 100,
SUPPORTS_TRANSACTIONS = 101,
SUPPORTS_REFERENTIALINTEGRITY = 102,
SUPPORTS_NEW_DATABASE = 103,
SUPPORTS_DELETE_DATABASE = 104,
SUPPORTS_NEW_TABLE = 105,
SUPPORTS_ALTER_TABLE = 106,
SUPPORTS_DELETE_TABLE = 107,
SUPPORTS_CREATE_INDEX = 108,
SUPPORTS_DELETE_INDEX = 109,
SUPPORTS_CHANGE_PASSWORD = 110,
SUPPORTS_RENAME_DATABASE = 111,
SUPPORTS_RENAME_TABLE = 112,
SUPPORTS_VIEWS = 113,
SUPPORTS_NEW_VIEW = 114,
SUPPORTS_ALTER_VIEW = 115,
SUPPORTS_DELETE_VIEW = 116,
SUPPORTS_LOCAL_FILEFORMAT = 200
} |
| enum | need_enum {
NEEDS_NOTHING = 0,
NEEDS_HOST = 1,
NEEDS_USERNAME = 2,
NEEDS_PASSWORD = 3,
NEEDS_SQLDELIMITER = 4,
NEEDS_PORT = 5,
NEEDS_DATABASENAME = 6,
NEEDS_BOOLEANEMULATION = 7,
NEEDS_NULL_TERMINATED_SQL = 8
} |
Public Member Functions |
| virtual | ~hk_connection () |
| void | set_host (const hk_string &h) |
|
hk_string | host (void) |
| void | set_user (const hk_string &u) |
|
hk_string | user (void) |
| void | set_password (const hk_string &p) |
|
hk_string | password (void) |
| void | set_tcp_port (unsigned int t) |
|
unsigned int | tcp_port (void) |
|
void | set_defaultdatabase (const hk_string &) |
|
hk_string | defaultdatabase (void) const |
| virtual unsigned int | default_tcp_port (void) const |
| bool | connect (enum_interaction c=interactive) |
| bool | disconnect (void) |
| bool | is_connected (void) |
| vector< hk_string > * | dblist (void) |
| hk_database * | new_database (const hk_string &name="") |
|
bool | rename_database (const hk_string &originalname, const hk_string &new_name) |
| virtual bool | server_supports (support_enum) const |
| virtual bool | server_needs (need_enum) const |
| virtual bool | create_database (const hk_string &dbase) |
| virtual bool | delete_database (const hk_string &dbase) |
| bool | database_exists (const hk_string &databasename) |
| bool | set_newpassword (const hk_string &newpassword) |
| void | show_newpassworddialog (void) |
|
bool | show_passworddialog (void) |
| virtual hk_string | drivername (void) const |
| void | set_booleanemulation (bool emulate) |
|
bool | booleanemulation (void) const |
|
hk_drivermanager * | drivermanager (void) |
| bool | copy_database (hk_database *fromdatabase, bool schema_and_data, bool copy_local_files, progress_dialogtype *progressdialog=NULL) |
|
hk_string | last_servermessage (void) |
|
hk_string | databasepath (void) |
Static Public Member Functions |
| static void | set_passworddialog (password_dialogtype *) |
| static void | set_newpassworddialog (newpassword_dialogtype *) |
Protected Member Functions |
|
| hk_connection (hk_drivermanager *c) |
|
virtual bool | driver_specific_connect (void) |
|
virtual bool | driver_specific_disconnect (void) |
|
virtual bool | driver_specific_rename_database (const hk_string &oldname, const hk_string &newname) |
|
virtual vector< hk_string > * | driver_specific_dblist (void) |
|
virtual hk_database * | driver_specific_new_database (void) |
|
virtual bool | driver_specific_new_password (const hk_string &) |
|
virtual bool | driver_specific_delete_database (const hk_string &dbase) |
|
void | db_remove (hk_database *d) |
|
hk_string | sqldelimiter (void) |
|
void | inform_databases_connect (void) |
|
void | inform_databases_disconnect (void) |
| virtual void | savedata (ostream &s) |
| virtual void | loaddata (const hk_string &definition) |
|
void | set_last_servermessage (const hk_string &m) |
|
hk_database * | database (void) const |
Protected Attributes |
|
bool | p_connected |
|
vector< hk_string > | p_databaselist |
Friends |
|
class | hk_database |
|
class | hk_drivermanager |