typedef std::vector<std::string> rdbModel::StringVector |
Class to handle connection to an SQL database, or something very like it. It should be able to
Maybe make it pure virtual? And make a MySQL implementation derived from it.
Initial design will just use host, password, userid passed in. Will be up to caller to insure that the userid has the right privilages for the operations caller intends to do.
Definition at line 34 of file Connection.h.
enum rdbModel::MATCH |
The following are used as return codes from the function schemaMatch. which checks for compatibility between the schema definition embodied in an Rdb object and the one at the other end of a Connection.
Definition at line 25 of file Connection.h.
00025 { 00026 MATCHequivalent, 00027 MATCHcompatible, 00028 MATCHfail, 00029 MATCHnoConnection 00030 };
enum rdbModel::FIELDTYPE |
FIELDTYPElit | |
FIELDTYPEold | |
FIELDTYPEtoBe | |
FIELDTYPEask | |
FIELDTYPElitDef | |
FIELDTYPEoldDef | |
FIELDTYPEtoBeDef |
Definition at line 21 of file Rdb.h.
00021 { 00022 FIELDTYPElit = 0, // literal value 00023 FIELDTYPEold, // col name, refers to (value of) col in existing row 00024 FIELDTYPEtoBe, // col name, refers to (value of) col in proposed row 00025 FIELDTYPEask, // supply value at the time of the operation 00026 FIELDTYPElitDef, // literal but may be overridden 00027 FIELDTYPEoldDef, // comes from existing row, may be overridden 00028 FIELDTYPEtoBeDef // comes from proposed row, may be overridden 00029 };
enum rdbModel::OPTYPE |
OPTYPEundefined | |
OPTYPEor | |
OPTYPEand | |
OPTYPEnot | |
OPTYPEexists | |
OPTYPEisNull | |
OPTYPEisEmpty | |
OPTYPEequal | |
OPTYPEnotEqual | |
OPTYPElessThan | |
OPTYPEgreaterThan | |
OPTYPElessOrEqual | |
OPTYPEgreaterOrEqual | |
OPTYPElast |
Definition at line 14 of file Assertion.h.
00014 { 00015 OPTYPEundefined = 0, 00016 OPTYPEor = 1, 00017 OPTYPEand, 00018 OPTYPEnot, 00019 OPTYPEexists, 00020 OPTYPEisNull, 00021 OPTYPEisEmpty, 00022 OPTYPEequal, // first of 2-operand compare ops 00023 OPTYPEnotEqual, 00024 OPTYPElessThan, 00025 OPTYPEgreaterThan, 00026 OPTYPElessOrEqual, 00027 OPTYPEgreaterOrEqual, 00028 OPTYPElast 00029 };
std::string rdbModel::opSymbols[OPTYPElast] |
Definition at line 479 of file MysqlConnection.cxx.
Referenced by rdbModel::MysqlConnection::compileComparison(), rdbModel::MysqlConnection::compileInit(), and rdbModel::MysqlConnection::compileOperator().