summaryrefslogtreecommitdiff
path: root/src/include/xbsql.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/xbsql.h')
-rwxr-xr-xsrc/include/xbsql.h26
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 );