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 SqlCreateTable( const xbString &sCmdLine );
46 xbInt16 SqlCreateIndex( const xbString &sCmdLine );
47
48 xbInt16 SqlDropIndex( const xbString &sCmdLine );
49 xbInt16 SqlDropTable( const xbString &sCmdLine );
50
51
52// xbInt16 SqlCreateView( const xbString &sCmdLine );
53// xbInt16 SqlDropView( const xbString &sCmdLine );
54// xbInt16 SqlUpdate( const xbString &sCmdLine );
55// xbInt16 SqlSelect( const xbString &sCmdLine );
56
57 void SqlHelp() const;
58 xbInt16 SqlInsert( const xbString &sCmLine );
59 xbInt16 SqlSet( const xbString &sCmdLine );
60 xbInt16 SqlUse( const xbString &sCmdLine );
61
62 xbXBase *xbase;
63 xbUda uda;
64
65};
66
67} /* namespace xb */
68#endif /* XB_SQL_SUPPORT */
69#endif /* __XB_XBSQL_H__ */
Definition: xbdate.cpp:19
class XBDLLEXPORT xbXBase
Definition: xbssv.h:27