File: toSQL.html

package info (click to toggle)
tora 1.3.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,632 kB
  • ctags: 7,487
  • sloc: cpp: 68,518; perl: 1,475; ansic: 291; sh: 173; makefile: 51
file content (301 lines) | stat: -rw-r--r-- 21,137 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<HTML>
<HEAD>
<TITLE>class toSQL</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class toSQL</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">
 This class handles an abstraction of SQL statements used by TOra to extract
 information and manipulate data. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="tosql_h.html">tosql.h</A>&gt;</code></TD></TR>
<TR><TH><A HREF="full-list-toSQL.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Types</h4><ul><LI>struct <A HREF="toSQL__version.html">version</A>
</LI>
<LI>struct <A HREF="toSQL__definition.html">definition</A>
</LI>
<LI>typedef std::map<QString,definition>  <A HREF="#ref3">sqlMap</A>
</LI>
</ul><h4>Public Methods</h4><ul><LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref23">operator ()</A></b> (const <A HREF="toConnection.html">toConnection</A> &conn)  const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &&nbsp;<b><A HREF="#ref24">name</A></b> (void)  const
</LI>
<LI>&nbsp;<b><A HREF="#ref25">toSQL</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &description="",
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &ver="8.1",
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider="Oracle") 
</LI>
</ul><h4>Public Static Methods</h4><ul><LI>static  bool &nbsp;<b><A HREF="#ref10">updateSQL</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &description,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &ver="8.1",
			const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider="Oracle",
			bool modified=true) 
</LI>
<LI>static  bool &nbsp;<b><A HREF="#ref11">deleteSQL</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &ver,
			const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider="Oracle") 
</LI>
<LI>static  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref12">string</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,const <A HREF="toConnection.html">toConnection</A> &conn) 
</LI>
<LI>static  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref13">string</A></b> (const <A HREF="toSQL.html">toSQL</A> &sqldef,const <A HREF="toConnection.html">toConnection</A> &conn) 
</LI>
<LI>static  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref14">description</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name) 
</LI>
<LI>static  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref15">description</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql) 
</LI>
<LI>static  <A HREF="http://doc.trolltech.com/qcstring.html">QCString</A> &nbsp;<b><A HREF="#ref16">sql</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,const <A HREF="toConnection.html">toConnection</A> &conn) 
</LI>
<LI>static  <A HREF="http://doc.trolltech.com/qcstring.html">QCString</A> &nbsp;<b><A HREF="#ref17">sql</A></b> (const <A HREF="toSQL.html">toSQL</A> &sqldef,const <A HREF="toConnection.html">toConnection</A> &conn) 
</LI>
<LI>static  <A HREF="toSQL.html">toSQL</A> &nbsp;<b><A HREF="#ref18">sql</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name) 
</LI>
<LI>static  std::list<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &nbsp;<b><A HREF="#ref19">range</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &startWith) 
</LI>
<LI>static  bool &nbsp;<b><A HREF="#ref20">saveSQL</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &file,bool all=false) 
</LI>
<LI>static  void &nbsp;<b><A HREF="#ref21">loadSQL</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &file) 
</LI>
<LI>static  const sqlMap &&nbsp;<b><A HREF="#ref22">definitions</A></b> (void) 
</LI>
</ul><h4>Public Members</h4><ul><LI>static const char * const <b><A HREF="#ref8">TOSQL_USERLIST</A></b></LI>
<LI>static const char * const <b><A HREF="#ref9">TOSQL_CREATEPLAN</A></b></LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 This class handles an abstraction of SQL statements used by TOra to extract
 information and manipulate data. This is usefull in two ways, first off you
 can edit the strings using a handy editor inside TOra if you find bugs. Also
 you can use different statements for different Oracle versions. You can also
 add support for new versions of Oracle without any need for recompilation or
 programming knowledge.
</p>
<p> All information about SQL statements are stored in one global static map which
 contains a name, a description and one or several statements connected to one
 Oracle version.
</p>
<p> To determine which SQL to use the statement with the highest
 version not above the current connection is used. If no statements below or
 equal to the current version is available the lowest available is used.
</p>
<p> All strings are specific for a given database provider. No attempt to use
 strings from other providers will be made.
 </p>
<A NAME="toSQL__version.html"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>version</strong> <small>(struct)</small></td><td align="right"><h3><strong>version</strong></h3></td></tr></table><p></p><p>
 Contains a statement with it's version.
   </p>
<A NAME="toSQL__definition.html"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>definition</strong> <small>(struct)</small></td><td align="right"><h3><strong>definition</strong></h3></td></tr></table><p></p><p>
 Definition of one toSQL statement with its description and versions.
   </p>
<A NAME="sqlMap"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>typedef std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,definition>  <strong>sqlMap</strong></td><td align="right"><h3><strong>sqlMap</strong></h3></td></tr></table><p></p><p> Type of map of statement names to statement definitions.
   </p>
<A NAME="TOSQL_USERLIST"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>static const char * const  <strong>TOSQL_USERLIST</strong>
</td><td align="right"><h3><strong>TOSQL_USERLIST</strong></h3></td></tr></table><p></p><A NAME="TOSQL_CREATEPLAN"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>static const char * const  <strong>TOSQL_CREATEPLAN</strong>
</td><td align="right"><h3><strong>TOSQL_CREATEPLAN</strong></h3></td></tr></table><p></p><A NAME="updateSQL"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>updateSQL</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &description,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &ver="8.1",
			const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider="Oracle",
			bool modified=true)
<br></td><td align="right"><h3><strong>updateSQL</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Update the map with new information.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of this SQL statement.
</TD></TR>
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">Statement to execute for this SQL.
</TD></TR>
<TR><TD align="left" valign="top"><i>description</i></TD><TD align="left" valign="top">Description of this SQL.
</TD></TR>
<TR><TD align="left" valign="top"><i>ver</i></TD><TD align="left" valign="top">Version of database this statement is meant for.
</TD></TR>
<TR><TD align="left" valign="top"><i>provider</i></TD><TD align="left" valign="top">Database provider this string is used for.
</TD></TR>
<TR><TD align="left" valign="top"><i>modified</i></TD><TD align="left" valign="top">Wether this is a modification or an addition to the map.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: True if a new statement was saved, otherwise false.
   </p>
<A NAME="deleteSQL"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>deleteSQL</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,
		        const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &ver,
			const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider="Oracle")
<br></td><td align="right"><h3><strong>deleteSQL</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Remove an SQL statement from a map. If the last version is removed
 from a statement it's definition is also removed.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name to remove.
</TD></TR>
<TR><TD align="left" valign="top"><i>ver</i></TD><TD align="left" valign="top">Version to remove.
</TD></TR>
<TR><TD align="left" valign="top"><i>provider</i></TD><TD align="left" valign="top">Provider to delete.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: True if a version was found to be removed.
   </p>
<A NAME="string"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>string</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,const <A HREF="toConnection.html">toConnection</A> &conn)
<br></td><td align="right"><h3><strong>string</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get the statement of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of statement.
</TD></TR>
<TR><TD align="left" valign="top"><i>conn</i></TD><TD align="left" valign="top">Connection to get version from.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing the statement.
</p>
<p><b>Throws</b>: QString, with, description, of, problem, fetching, string.</p>
<A NAME="string"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>string</strong> (const <A HREF="toSQL.html">toSQL</A> &sqldef,const <A HREF="toConnection.html">toConnection</A> &conn)
<br></td><td align="right"><h3><strong>string</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get the statement of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sqlDef</i></TD><TD align="left" valign="top">SQL to get name of statement from.
</TD></TR>
<TR><TD align="left" valign="top"><i>conn</i></TD><TD align="left" valign="top">Connection to get version from.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing the statement.
</p>
<p><b>Throws</b>: QString, with, description, of, problem, fetching, string.</p>
<A NAME="description"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>description</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
<br></td><td align="right"><h3><strong>description</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get description of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of SQL to get name from..
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing description.
</p>
<p><b>Throws</b>: QString, with, description, of, problem, fetching, string.</p>
<A NAME="description"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>description</strong> (const <A HREF="toSQL.html">toSQL</A> &sql)
<br></td><td align="right"><h3><strong>description</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get description of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sqlDef</i></TD><TD align="left" valign="top">SQL to get name of statement from.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing description.
</p>
<p><b>Throws</b>: QString, with, description, of, problem, fetching, string.</p>
<A NAME="sql"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qcstring.html">QCString</A> &nbsp;<strong>sql</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,const <A HREF="toConnection.html">toConnection</A> &conn)
<br></td><td align="right"><h3><strong>sql</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get the statement of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of statement.
</TD></TR>
<TR><TD align="left" valign="top"><i>conn</i></TD><TD align="left" valign="top">Connection to get version from.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing the statement.
</p>
<p><b>Throws</b>: QString, with, description, of, problem, fetching, string.</p>
<A NAME="sql"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qcstring.html">QCString</A> &nbsp;<strong>sql</strong> (const <A HREF="toSQL.html">toSQL</A> &sqldef,const <A HREF="toConnection.html">toConnection</A> &conn)
<br></td><td align="right"><h3><strong>sql</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get the statement of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sqlDef</i></TD><TD align="left" valign="top">SQL to get name of statement from.
</TD></TR>
<TR><TD align="left" valign="top"><i>conn</i></TD><TD align="left" valign="top">Connection to get version from.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing the statement.
</p>
<p><b>Throws</b>: QString, with, description, of, problem, fetching, string.</p>
<A NAME="sql"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="toSQL.html">toSQL</A> &nbsp;<strong>sql</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
<br></td><td align="right"><h3><strong>sql</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get an SQL from a specified name.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name to get SQL for.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: a toSQL object for given name.
   </p>
<A NAME="range"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td> std::list<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &nbsp;<strong>range</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &startWith)
<br></td><td align="right"><h3><strong>range</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 Get all defined names that start with a given substring.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>startWith</i></TD><TD align="left" valign="top">The string that the name should start with.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A list of names available.
   </p>
<A NAME="saveSQL"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>saveSQL</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &file,bool all=false)
<br></td><td align="right"><h3><strong>saveSQL</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Save SQL definitions to file.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>file</i></TD><TD align="left" valign="top">Filename to save to.
</TD></TR>
<TR><TD align="left" valign="top"><i>all</i></TD><TD align="left" valign="top">If true all statements will be saved, otherwised only modified are saved.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: True if saved successfully.
   </p>
<A NAME="loadSQL"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>loadSQL</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &file)
<br></td><td align="right"><h3><strong>loadSQL</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Load definitions from file.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>file</i></TD><TD align="left" valign="top">Filename to load from.
</TD></TR>
</TABLE></P>
<p><b>Throws</b>: s, QString, describing, the, problem, loading.</p>
<A NAME="definitions"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td> const sqlMap &&nbsp;<strong>definitions</strong> (void)
<br></td><td align="right"><h3><strong>definitions</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get the entire map of SQL definitions
</p>
<p><b>Returns</b>: A reference to the map of definitions.
   </p>
<A NAME="operator%20()"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>operator ()</strong> (const <A HREF="toConnection.html">toConnection</A> &conn)
<br></td><td align="right"><h3><strong>operator ()</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get the statement of an SQL.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>conn</i></TD><TD align="left" valign="top">Connection to get version from.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String containing the statement.
   </p>
<A NAME="name"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &&nbsp;<strong>name</strong> (void)
<br></td><td align="right"><h3><strong>name</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get name of this SQL.
</p>
<p><b>Returns</b>: Name.
   </p>
<A NAME="toSQL"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toSQL</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name,
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &description="",
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &ver="8.1",
	const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider="Oracle")
<br></td><td align="right"><h3><strong>toSQL</strong></h3></td></tr></table><p></p><p> Create a new SQL. Observe that the only thing this does is insert the supplied
 information into the definition map, deleting the SQL will not the information from
 the defitinion map. Only one description can be made for each statement name.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of SQL.
</TD></TR>
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">Statement of this SQL.
</TD></TR>
<TR><TD align="left" valign="top"><i>description</i></TD><TD align="left" valign="top">Description of statement.
</TD></TR>
<TR><TD align="left" valign="top"><i>ver</i></TD><TD align="left" valign="top">Version this statement applies to.
</TD></TR>
<TR><TD align="left" valign="top"><i>provider</i></TD><TD align="left" valign="top">Provider this string is for.
   </TD></TR>
</TABLE></P>
<HR>
	<table>
	</table>
</BODY>
</HTML>