Xbase64 4.0.1
C++ Library for handling Xbase (DBF) format type files
xbsql.h
Go to the documentation of this file.
1/* xbsql.h
2
3XBase64 Software Library
4
5Copyright (c) 1997,2003,2014,2022 Gary A Kunkel
6
7The xb64 software library is covered under the terms of the GPL Version 3, 2007 license.
8
9Email Contact:
10
11 XDB-devel@lists.sourceforge.net
12 XDB-users@lists.sourceforge.net
13
14This class manages a list of open tables, open indices are connected to the open tables
15
16*/
17
18
19#ifndef __XB_XBSQL_H__
20#define __XB_XBSQL_H__
21
22#ifdef CMAKE_COMPILER_IS_GNUCC
23#pragma interface
24#endif
25
26
27#ifdef XB_SQL_SUPPORT
28
29namespace xb{
30
31
32class XBDLLEXPORT xbSql : public xbSsv {
33 public:
34 // xbSql();
35 xbSql( xbXBase *x );
36 ~xbSql();
37
38 xbInt16 ExecuteNonQuery( const xbString &sCmdLine );
39 xbXBase *GetXbasePtr() const;
40
41 protected:
42
43 private:
44
45 xbInt16 SqlAlterTable( const xbString &sCmdLine );
46
47 xbInt16 SqlCreateTable( const xbString &sCmdLine );
48
49 xbInt16 SqlDelete( const xbString &sCmdLine );
50
51 xbInt16 SqlDropTable( const xbString &sCmdLine );
52
53
54 #ifdef XB_INDEX_SUPPORT
55 xbInt16 SqlCreateIndex( const xbString &sCmdLine );
56 xbInt16 SqlDropIndex( const xbString &sCmdLine );
57 #endif // XB_INDEX_SUPPORT
58
59// xbInt16 SqlCreateView( const xbString &sCmdLine );
60// xbInt16 SqlDropView( const xbString &sCmdLine );
61// xbInt16 SqlUpdate( const xbString &sCmdLine );
62// xbInt16 SqlSelect( const xbString &sCmdLine );
63
64 void SqlHelp() const;
65 xbInt16 SqlInsert( const xbString &sCmLine );
66 xbInt16 SqlSet( const xbString &sCmdLine );
67 xbInt16 SqlUse( const xbString &sCmdLine );
68
69 xbXBase *xbase;
70 xbUda uda;
71
72};
73
74} /* namespace xb */
75#endif /* XB_SQL_SUPPORT */
76#endif /* __XB_XBSQL_H__ */
Definition: xbdate.cpp:19
class XBDLLEXPORT xbXBase
Definition: xbssv.h:27