diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-01-29 15:45:51 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-01-29 15:45:51 +0100 |
commit | 517ad9d4b6eae320b708d03a9340a22893b0cab7 (patch) | |
tree | 37cf1907008821b4155cf90718b8d7b00a9d3461 /src/include/xbsql.h | |
parent | 4875a3dd9b183dcd2256e2abfc4ccf7484c233b4 (diff) |
New upstream version 4.0.3upstream/4.0.3
Diffstat (limited to 'src/include/xbsql.h')
-rwxr-xr-x | src/include/xbsql.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/include/xbsql.h b/src/include/xbsql.h index 3869995..653096c 100755 --- a/src/include/xbsql.h +++ b/src/include/xbsql.h @@ -29,6 +29,19 @@ This class manages a list of open tables, open indices are connected to the open namespace xb{ +struct XBDLLEXPORT xbSqlFld{ + char cType; // F - Database field + // L - Literal + // E - Expression + xbInt16 iFldNo; // Field number if db field + xbExp * pExp; // If cType=E, pointer to parsed expression + xbString sFldAlias; // Alias name for query display + xbSqlFld * Next; // Next field in list +}; + + + + class XBDLLEXPORT xbSql : public xbSsv { public: // xbSql(); @@ -42,18 +55,21 @@ class XBDLLEXPORT xbSql : public xbSsv { private: + xbInt16 SqlAlterTable( const xbString &sCmdLine ); xbInt16 SqlCreateTable( const xbString &sCmdLine ); - xbInt16 SqlCreateIndex( const xbString &sCmdLine ); - - xbInt16 SqlDropIndex( const xbString &sCmdLine ); + xbInt16 SqlDelete( const xbString &sCmdLine ); xbInt16 SqlDropTable( const xbString &sCmdLine ); + #ifdef XB_INDEX_SUPPORT + xbInt16 SqlCreateIndex( const xbString &sCmdLine ); + xbInt16 SqlDropIndex( const xbString &sCmdLine ); + #endif // XB_INDEX_SUPPORT // xbInt16 SqlCreateView( const xbString &sCmdLine ); // xbInt16 SqlDropView( const xbString &sCmdLine ); // xbInt16 SqlUpdate( const xbString &sCmdLine ); -// xbInt16 SqlSelect( const xbString &sCmdLine ); - + xbInt16 SqlSelect( const xbString &sCmdLine ); + void SqlHelp() const; xbInt16 SqlInsert( const xbString &sCmLine ); xbInt16 SqlSet( const xbString &sCmdLine ); |