/usr/share/gtk-doc/html/libgda-4.0/libgda-4.0-SQL-rendering-API.html is in libgda-4.0-doc 4.2.8-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SQL rendering API</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GNOME Data Access 4 manual">
<link rel="up" href="psupport.html" title="Providers' support API">
<link rel="prev" href="libgda-4.0-Quark-lists.html" title="Quark lists">
<link rel="next" href="libgda-4.0-Misc-API.html" title="Misc API">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgda-4.0-Quark-lists.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="psupport.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME Data Access 4 manual</th>
<td><a accesskey="n" href="libgda-4.0-Misc-API.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgda-4.0-SQL-rendering-API.synopsis" class="shortcut">Top</a>
|
<a href="#libgda-4.0-SQL-rendering-API.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libgda-4.0-SQL-rendering-API"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgda-4.0-SQL-rendering-API.top_of_page"></a>SQL rendering API</span></h2>
<p>SQL rendering API — Adapting the SQL to the database's own SQL dialect</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgda-4.0-SQL-rendering-API.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <libgda/gda-statement-extra.h>
struct <a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext">GdaSqlRenderingContext</a>;
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (<a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingValue" title="GdaSqlRenderingValue ()">*GdaSqlRenderingValue</a>) (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (<a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingPSpecFunc" title="GdaSqlRenderingPSpecFunc ()">*GdaSqlRenderingPSpecFunc</a>) (<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlParamSpec" title="struct GdaSqlParamSpec"><span class="type">GdaSqlParamSpec</span></a> *pspec</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> *expr</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_default</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_null</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (<a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingExpr" title="GdaSqlRenderingExpr ()">*GdaSqlRenderingExpr</a>) (<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> *expr</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_default</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_null</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (<a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()">*GdaSqlRenderingFunc</a>) (<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlAnyPart" title="struct GdaSqlAnyPart"><span class="type">GdaSqlAnyPart</span></a> *node</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libgda-4.0-SQL-rendering-API.html#gda-statement-to-sql-real" title="gda_statement_to_sql_real ()">gda_statement_to_sql_real</a> (<em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgda-4.0-SQL-rendering-API.description"></a><h2>Description</h2>
<p>
<span class="application">Libgda</span> is able to render a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> statement to SQL in a generic way (as close as possible to the SQL
standard). However as each database has ultimately its own SQL dialect, some parts of the rendering has
to be specialized.
</p>
<p>
Customization is achieved by providing custom implementations of SQL rendering functions for each kind of
part in a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatement" title="GdaSqlStatement"><span class="type">GdaSqlStatement</span></a> structure, all packed in a <a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> context structure. Functions
which are not customized will be implemented by the default ones.
</p>
</div>
<div class="refsect1">
<a name="libgda-4.0-SQL-rendering-API.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GdaSqlRenderingContext"></a><h3>struct GdaSqlRenderingContext</h3>
<pre class="programlisting">struct GdaSqlRenderingContext {
GdaStatementSqlFlag flags;
GdaSet *params;
GSList *params_used;
GdaServerProvider *provider; /* may be NULL */
GdaConnection *cnc; /* may be NULL */
/* rendering functions */
GdaSqlRenderingValue render_value;
GdaSqlRenderingPSpecFunc render_param_spec;
GdaSqlRenderingExpr render_expr;
GdaSqlRenderingFunc render_unknown;
GdaSqlRenderingFunc render_begin;
GdaSqlRenderingFunc render_rollback;
GdaSqlRenderingFunc render_commit;
GdaSqlRenderingFunc render_savepoint;
GdaSqlRenderingFunc render_rollback_savepoint;
GdaSqlRenderingFunc render_delete_savepoint;
GdaSqlRenderingFunc render_select;
GdaSqlRenderingFunc render_insert;
GdaSqlRenderingFunc render_delete;
GdaSqlRenderingFunc render_update;
GdaSqlRenderingFunc render_compound;
GdaSqlRenderingFunc render_field;
GdaSqlRenderingFunc render_table;
GdaSqlRenderingFunc render_function;
GdaSqlRenderingFunc render_operation;
GdaSqlRenderingFunc render_case;
GdaSqlRenderingFunc render_select_field;
GdaSqlRenderingFunc render_select_target;
GdaSqlRenderingFunc render_select_join;
GdaSqlRenderingFunc render_select_from;
GdaSqlRenderingFunc render_select_order;
/* Padding for future expansion */
void (*_gda_reserved1) (void);
void (*_gda_reserved2) (void);
void (*_gda_reserved3) (void);
void (*_gda_reserved4) (void);
void (*_gda_reserved5) (void);
void (*_gda_reserved6) (void);
void (*_gda_reserved7) (void);
void (*_gda_reserved8) (void);
};
</pre>
<p>
Structure to wrap all the individual part's SQL rendering functions
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="GdaStatement.html#GdaStatementSqlFlag" title="enum GdaStatementSqlFlag"><span class="type">GdaStatementSqlFlag</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.flags"></a>flags</code></em>;</span></p></td>
<td>Global rendering options</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *<em class="structfield"><code><a name="GdaSqlRenderingContext.params"></a>params</code></em>;</span></p></td>
<td>Parameters to be used while doing the rendering</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *<em class="structfield"><code><a name="GdaSqlRenderingContext.params-used"></a>params_used</code></em>;</span></p></td>
<td>When rendering is complete, contains the ordered list of parameters which have been used while doing the rendering</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> *<em class="structfield"><code><a name="GdaSqlRenderingContext.provider"></a>provider</code></em>;</span></p></td>
<td>Pointer to the server provider to be used</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *<em class="structfield"><code><a name="GdaSqlRenderingContext.cnc"></a>cnc</code></em>;</span></p></td>
<td>Pointer to the connection to be used</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingValue" title="GdaSqlRenderingValue ()"><span class="type">GdaSqlRenderingValue</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-value"></a>render_value</code></em>;</span></p></td>
<td>function to render a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingPSpecFunc" title="GdaSqlRenderingPSpecFunc ()"><span class="type">GdaSqlRenderingPSpecFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-param-spec"></a>render_param_spec</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlParamSpec" title="struct GdaSqlParamSpec"><span class="type">GdaSqlParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingExpr" title="GdaSqlRenderingExpr ()"><span class="type">GdaSqlRenderingExpr</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-expr"></a>render_expr</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-unknown"></a>render_unknown</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementUnknown" title="GdaSqlStatementUnknown"><span class="type">GdaSqlStatementUnknown</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-begin"></a>render_begin</code></em>;</span></p></td>
<td>function to render a BEGIN <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementTransaction" title="GdaSqlStatementTransaction"><span class="type">GdaSqlStatementTransaction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-rollback"></a>render_rollback</code></em>;</span></p></td>
<td>function to render a ROLLBACK <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementTransaction" title="GdaSqlStatementTransaction"><span class="type">GdaSqlStatementTransaction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-commit"></a>render_commit</code></em>;</span></p></td>
<td>function to render a COMMIT <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementTransaction" title="GdaSqlStatementTransaction"><span class="type">GdaSqlStatementTransaction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-savepoint"></a>render_savepoint</code></em>;</span></p></td>
<td>function to render a ADD SAVEPOINT <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementTransaction" title="GdaSqlStatementTransaction"><span class="type">GdaSqlStatementTransaction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-rollback-savepoint"></a>render_rollback_savepoint</code></em>;</span></p></td>
<td>function to render a ROLBACK SAVEPOINT <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementTransaction" title="GdaSqlStatementTransaction"><span class="type">GdaSqlStatementTransaction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-delete-savepoint"></a>render_delete_savepoint</code></em>;</span></p></td>
<td>function to render a DELETE SAVEPOINT <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementTransaction" title="GdaSqlStatementTransaction"><span class="type">GdaSqlStatementTransaction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-select"></a>render_select</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementSelect" title="GdaSqlStatementSelect"><span class="type">GdaSqlStatementSelect</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-insert"></a>render_insert</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementInsert" title="GdaSqlStatementInsert"><span class="type">GdaSqlStatementInsert</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-delete"></a>render_delete</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementDelete" title="GdaSqlStatementDelete"><span class="type">GdaSqlStatementDelete</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-update"></a>render_update</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementUpdate" title="GdaSqlStatementUpdate"><span class="type">GdaSqlStatementUpdate</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-compound"></a>render_compound</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlStatementCompound" title="GdaSqlStatementCompound"><span class="type">GdaSqlStatementCompound</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-field"></a>render_field</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlField" title="struct GdaSqlField"><span class="type">GdaSqlField</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-table"></a>render_table</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlTable" title="struct GdaSqlTable"><span class="type">GdaSqlTable</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-function"></a>render_function</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlFunction" title="struct GdaSqlFunction"><span class="type">GdaSqlFunction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-operation"></a>render_operation</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlOperation" title="struct GdaSqlOperation"><span class="type">GdaSqlOperation</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-case"></a>render_case</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlCase" title="struct GdaSqlCase"><span class="type">GdaSqlCase</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-select-field"></a>render_select_field</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlSelectField" title="struct GdaSqlSelectField"><span class="type">GdaSqlSelectField</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-select-target"></a>render_select_target</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlSelectTarget" title="struct GdaSqlSelectTarget"><span class="type">GdaSqlSelectTarget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-select-join"></a>render_select_join</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlSelectJoin" title="struct GdaSqlSelectJoin"><span class="type">GdaSqlSelectJoin</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-select-from"></a>render_select_from</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlSelectFrom" title="struct GdaSqlSelectFrom"><span class="type">GdaSqlSelectFrom</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingFunc" title="GdaSqlRenderingFunc ()"><span class="type">GdaSqlRenderingFunc</span></a> <em class="structfield"><code><a name="GdaSqlRenderingContext.render-select-order"></a>render_select_order</code></em>;</span></p></td>
<td>function to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlSelectOrder" title="struct GdaSqlSelectOrder"><span class="type">GdaSqlSelectOrder</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved1"></a>_gda_reserved1</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved2"></a>_gda_reserved2</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved3"></a>_gda_reserved3</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved4"></a>_gda_reserved4</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved5"></a>_gda_reserved5</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved6"></a>_gda_reserved6</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved7"></a>_gda_reserved7</code></em> ()</span></p></td>
<td></td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GdaSqlRenderingContext.-gda-reserved8"></a>_gda_reserved8</code></em> ()</span></p></td>
<td></td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaSqlRenderingValue"></a><h3>GdaSqlRenderingValue ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (*GdaSqlRenderingValue) (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Rendering function type to render a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> to render</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the rendering context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaSqlRenderingPSpecFunc"></a><h3>GdaSqlRenderingPSpecFunc ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (*GdaSqlRenderingPSpecFunc) (<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlParamSpec" title="struct GdaSqlParamSpec"><span class="type">GdaSqlParamSpec</span></a> *pspec</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> *expr</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_default</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_null</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Rendering function type to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlParamSpec" title="struct GdaSqlParamSpec"><span class="type">GdaSqlParamSpec</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em> :</span></p></td>
<td>
<a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlParamSpec" title="struct GdaSqlParamSpec"><span class="type">GdaSqlParamSpec</span></a> to render</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>expr</code></em> :</span></p></td>
<td>
<a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> which may hold the default value for the parameter, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the rendering context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_default</code></em> :</span></p></td>
<td>pointer to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> which is set to TRUE if value should be considered as a default value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_null</code></em> :</span></p></td>
<td>pointer to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> which is set to TRUE if value should be considered as NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaSqlRenderingExpr"></a><h3>GdaSqlRenderingExpr ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (*GdaSqlRenderingExpr) (<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> *expr</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_default</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *is_null</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Rendering function type to render a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>expr</code></em> :</span></p></td>
<td>
<a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> to render</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the rendering context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_default</code></em> :</span></p></td>
<td>pointer to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> which is set to TRUE if value should be considered as a default value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_null</code></em> :</span></p></td>
<td>pointer to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> which is set to TRUE if value should be considered as NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaSqlRenderingFunc"></a><h3>GdaSqlRenderingFunc ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * (*GdaSqlRenderingFunc) (<em class="parameter"><code><a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlAnyPart" title="struct GdaSqlAnyPart"><span class="type">GdaSqlAnyPart</span></a> *node</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Rendering function type to render any <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlAnyPart" title="struct GdaSqlAnyPart"><span class="type">GdaSqlAnyPart</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlAnyPart" title="struct GdaSqlAnyPart"><span class="type">GdaSqlAnyPart</span></a> pointer, to be cast to the correct type depending on which part the function has to render</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the rendering context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-statement-to-sql-real"></a><h3>gda_statement_to_sql_real ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gda_statement_to_sql_real (<em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
<em class="parameter"><code><a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> *context</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Renders <em class="parameter"><code>stmt</code></em> to its SQL representation, using <em class="parameter"><code>context</code></em> to specify how each part of <em class="parameter"><code>stmt</code></em> must
be rendered. This function is mainly used by database provider's implementations which require
to specialize some aspects of SQL rendering to be adapted to the database,'s own SQL dialect
(for example SQLite rewrites the 'FALSE' and 'TRUE' literals as '0' and 'NOT 0').
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>stmt</code></em> :</span></p></td>
<td>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-SQL-rendering-API.html#GdaSqlRenderingContext" title="struct GdaSqlRenderingContext"><span class="type">GdaSqlRenderingContext</span></a> context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libgda-4.0-SQL-rendering-API.see-also"></a><h2>See Also</h2>
<p>
<a class="link" href="GdaStatement.html#gda-statement-to-sql-extended" title="gda_statement_to_sql_extended ()"><a class="link" href="GdaStatement.html#gda-statement-to-sql-extended" title="gda_statement_to_sql_extended ()"><code class="function">gda_statement_to_sql_extended()</code></a></a>
</p>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.17</div>
</body>
</html>
|