|
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. |
|
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 };
|
|
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 };
|
|
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.
00025 { 00026 MATCHequivalent, 00027 MATCHcompatible, 00028 MATCHfail, 00029 MATCHnoConnection 00030 };
|
|
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.
00025 { 00026 MATCHequivalent, 00027 MATCHcompatible, 00028 MATCHfail, 00029 MATCHnoConnection 00030 };
|
|
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 };
|
|
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 };
|
|
|