This file is indexed.

/usr/share/gtk-doc/html/libgda-4.0/GdaDataSelect.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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdaDataSelect</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="data_models.html" title="Data handling">
<link rel="prev" href="GdaDataModel.html" title="GdaDataModel">
<link rel="next" href="GdaColumn.html" title="GdaDataModel columns">
<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="GdaDataModel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="data_models.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="GdaColumn.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GdaDataSelect.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GdaDataSelect.description" class="shortcut">Description</a>
                   | 
                  <a href="#GdaDataSelect.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GdaDataSelect.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#GdaDataSelect.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="GdaDataSelect"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GdaDataSelect.top_of_page"></a>GdaDataSelect</span></h2>
<p>GdaDataSelect — Data models returned by the execution of a SELECT statement</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GdaDataSelect.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct              <a class="link" href="GdaDataSelect.html#GdaDataSelect-struct" title="struct GdaDataSelect">GdaDataSelect</a>;
enum                <a class="link" href="GdaDataSelect.html#GdaDataSelectError" title="enum GdaDataSelectError">GdaDataSelectError</a>;
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition-sql" title="gda_data_select_set_row_selection_condition_sql ()">gda_data_select_set_row_selection_condition_sql</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql_where</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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition" title="gda_data_select_set_row_selection_condition ()">gda_data_select_set_row_selection_condition</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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 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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-compute-row-selection-condition" title="gda_data_select_compute_row_selection_condition ()">gda_data_select_compute_row_selection_condition</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-set-modification-statement" title="gda_data_select_set_modification_statement ()">gda_data_select_set_modification_statement</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *mod_stmt</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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-set-modification-statement-sql" title="gda_data_select_set_modification_statement_sql ()">gda_data_select_set_modification_statement_sql</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql</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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-compute-modification-statements" title="gda_data_select_compute_modification_statements ()">gda_data_select_compute_modification_statements</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-compute-columns-attributes" title="gda_data_select_compute_columns_attributes ()">gda_data_select_compute_columns_attributes</a>
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GdaDataSelect.html#gda-data-select-rerun" title="gda_data_select_rerun ()">gda_data_select_rerun</a>               (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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>);
<span class="returnvalue">void</span>                <a class="link" href="GdaDataSelect.html#gda-data-select-add-exception" title="gda_data_select_add_exception ()">gda_data_select_add_exception</a>       (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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="GdaDataSelect.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----GdaDataSelect
</pre>
</div>
<div class="refsect1">
<a name="GdaDataSelect.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GdaDataSelect implements
 <a class="link" href="GdaDataModel.html" title="GdaDataModel">GdaDataModel</a>.</p>
</div>
<div class="refsect1">
<a name="GdaDataSelect.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--auto-reset" title='The "auto-reset" property'>auto-reset</a>"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--connection" title='The "connection" property'>connection</a>"               <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a>*        : Read / Write / Construct Only
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--delete-stmt" title='The "delete-stmt" property'>delete-stmt</a>"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read / Write
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--exec-params" title='The "exec-params" property'>exec-params</a>"              <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a>*               : Read / Write / Construct Only
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--insert-stmt" title='The "insert-stmt" property'>insert-stmt</a>"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read / Write
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--model-usage" title='The "model-usage" property'>model-usage</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a>                 : Read / Write / Construct Only
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--prepared-stmt" title='The "prepared-stmt" property'>prepared-stmt</a>"            <a class="link" href="GdaPStmt.html" title="GdaPStmt"><span class="type">GdaPStmt</span></a>*             : Read / Write
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--select-stmt" title='The "select-stmt" property'>select-stmt</a>"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--store-all-rows" title='The "store-all-rows" property'>store-all-rows</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="GdaDataSelect.html#GdaDataSelect--update-stmt" title='The "update-stmt" property'>update-stmt</a>"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="GdaDataSelect.description"></a><h2>Description</h2>
<p>
  This data model implements the <a class="link" href="GdaDataModel.html" title="GdaDataModel">GdaDataModel</a> interface and is the required
  base object when database providers implement a data model returned when a SELECT statement has been executed.
  As the <a class="link" href="GdaDataModel.html" title="GdaDataModel">GdaDataModel</a> interface is implemented, consult the API
  to access and modify the data held in a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect">GdaDataSelect</a> object.
</p>
<p>
  The default behaviour however is to disallow modifications, and this section documents how to characterize
  a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect">GdaDataSelect</a> to allow modifications. Once this is done, any modification
  done to the data model will be propagated to the modified table in the database using INSERT, UPDATE or DELETE
  statements.
</p>
<p>
  After any modification, it is still possible to read values from the data model (even values for rows which have
  been modified or inserted). The data model might then execute some SELECT statement to fetch some actualized values.
  Note: there is a corner case where a modification made to a row would make the row not selected at first in the data model
  (for example is the original SELECT statement included a clause "WHERE id &lt; 100" and the modification sets the
  "id" value to 110), then the row will still be in the data model even though it would not be if the SELECT statement
  which execution created the data model in the first place was re-run. This is illustrated in the schema below:
  </p>
<div class="mediaobject"><img src="writable_data_model.png" width="354.330708661417" alt="GdaDataSelect data model's contents after some modifications"></div>
<p>
</p>
</div>
<div class="refsect1">
<a name="GdaDataSelect.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GdaDataSelect-struct"></a><h3>struct GdaDataSelect</h3>
<pre class="programlisting">struct GdaDataSelect;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelectError"></a><h3>enum GdaDataSelectError</h3>
<pre class="programlisting">typedef enum {
	GDA_DATA_SELECT_MODIFICATION_STATEMENT_ERROR,
	GDA_DATA_SELECT_MISSING_MODIFICATION_STATEMENT_ERROR,
	GDA_DATA_SELECT_CONNECTION_ERROR,
	GDA_DATA_SELECT_ACCESS_ERROR,
	GDA_DATA_SELECT_SQL_ERROR,
	GDA_DATA_SELECT_SAFETY_LOCKED_ERROR
} GdaDataSelectError;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-set-row-selection-condition-sql"></a><h3>gda_data_select_set_row_selection_condition_sql ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_set_row_selection_condition_sql
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql_where</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>
Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would
return only 1 row (the expression of the primary key).
</p>
<p>
For example for a table created as "CREATE TABLE mytable (part1 int NOT NULL, part2 string NOT NULL, 
name string, PRIMARY KEY (part1, part2))", and if <em class="parameter"><code>pmodel</code></em> corresponds to the execution of the 
"SELECT name, part1, part2 FROM mytable", then the sensible value for <em class="parameter"><code>sql_where</code></em> would be
"part1 = ##-1::int AND part2 = ##-2::string" because the values of the 'part1' field are located
in <em class="parameter"><code>pmodel</code></em>'s column number 1 and the values of the 'part2' field are located
in <em class="parameter"><code>pmodel</code></em>'s column number 2 and the primary key is composed of (part1, part2).
</p>
<p>
For more information about the syntax of the parameters (named "##-1::int" for example), see the
<a class="link" href="GdaSqlParser.html#GdaSqlParser.description" title="Description">GdaSqlParser</a> documentation, and 
<a class="link" href="GdaDataSelect.html#gda-data-select-set-modification-statement" title="gda_data_select_set_modification_statement ()"><code class="function">gda_data_select_set_modification_statement()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sql_where</code></em> :</span></p></td>
<td>an SQL condition (without the WHERE keyword)</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>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-set-row-selection-condition"></a><h3>gda_data_select_set_row_selection_condition ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_set_row_selection_condition
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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 href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Offers the same features as <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition-sql" title="gda_data_select_set_row_selection_condition_sql ()"><code class="function">gda_data_select_set_row_selection_condition_sql()</code></a> but using a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a>
structure instead of an SQL syntax.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>expr</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-GdaSqlStatement.html#GdaSqlExpr" title="struct GdaSqlExpr"><span class="type">GdaSqlExpr</span></a> expression. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</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>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-compute-row-selection-condition"></a><h3>gda_data_select_compute_row_selection_condition ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_compute_row_selection_condition
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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>
Offers the same features as <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition" title="gda_data_select_set_row_selection_condition ()"><code class="function">gda_data_select_set_row_selection_condition()</code></a> but the expression
is computed from the meta data associated to the connection being used when <em class="parameter"><code>model</code></em> was created.
</p>
<p>
NOTE1: make sure the meta data associated to the connection is up to date before using this
method, see <a class="link" href="GdaConnection.html#gda-connection-update-meta-store" title="gda_connection_update_meta_store ()"><code class="function">gda_connection_update_meta_store()</code></a>.
</p>
<p>
NOTE2: if the SELECT statement from which <em class="parameter"><code>model</code></em> has been created uses more than one table, or
if the table used does not have any primary key, then this method will fail
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> object</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>TRUE if no error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-set-modification-statement"></a><h3>gda_data_select_set_modification_statement ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_set_modification_statement
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *mod_stmt</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>
Informs <em class="parameter"><code>model</code></em> that it should allow modifications to the data in some columns and some rows
using <em class="parameter"><code>mod_stmt</code></em> to propagate those modifications into the database.
</p>
<p>
If <em class="parameter"><code>mod_stmt</code></em> is:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>an UPDATE statement, then all the rows in <em class="parameter"><code>model</code></em> will be modifyable</p></li>
<li class="listitem"><p>a DELETE statement, then it will be possible to delete rows in <em class="parameter"><code>model</code></em></p></li>
<li class="listitem"><p>in INSERT statement, then it will be possible to add some rows to <em class="parameter"><code>model</code></em></p></li>
<li class="listitem"><p>any other statement, then this method will return an error</p></li>
</ul></div>
<p>
</p>
<p>
This method can be called several times to specify different types of modification.
</p>
<p>
If <em class="parameter"><code>mod_stmt</code></em> is an UPDATE or DELETE statement then it should have a WHERE part which identifies
a unique row in <em class="parameter"><code>model</code></em> (please note that this property can't be checked but may result
in <em class="parameter"><code>model</code></em> behaving in an unpredictable way).
</p>
<p>
NOTE1: However, if the <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition" title="gda_data_select_set_row_selection_condition ()"><code class="function">gda_data_select_set_row_selection_condition()</code></a>
or <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition-sql" title="gda_data_select_set_row_selection_condition_sql ()"><code class="function">gda_data_select_set_row_selection_condition_sql()</code></a> have been successfully be called before, the WHERE
part of <em class="parameter"><code>mod_stmt</code></em> <span class="emphasis"><em>WILL</em></span> be modified to use the row selection condition specified through one of
these methods (please not that it is then possible to avoid specifying a WHERE part in <em class="parameter"><code>mod_stmt</code></em> then).
</p>
<p>
NOTE2: if <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition" title="gda_data_select_set_row_selection_condition ()"><code class="function">gda_data_select_set_row_selection_condition()</code></a>
or <a class="link" href="GdaDataSelect.html#gda-data-select-set-row-selection-condition-sql" title="gda_data_select_set_row_selection_condition_sql ()"><code class="function">gda_data_select_set_row_selection_condition_sql()</code></a> have not yet been successfully be called before, then
the WHERE part of <em class="parameter"><code>mod_stmt</code></em> will be used as if one of these functions had been called.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mod_stmt</code></em> :</span></p></td>
<td>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> (INSERT, UPDATE or DELETE)</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>TRUE if no error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-set-modification-statement-sql"></a><h3>gda_data_select_set_modification_statement_sql ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_set_modification_statement_sql
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql</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>
Offers the same feature as <a class="link" href="GdaDataSelect.html#gda-data-select-set-modification-statement" title="gda_data_select_set_modification_statement ()"><code class="function">gda_data_select_set_modification_statement()</code></a> but using an SQL statement
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sql</code></em> :</span></p></td>
<td>an SQL text</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>TRUE if no error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-compute-modification-statements"></a><h3>gda_data_select_compute_modification_statements ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_compute_modification_statements
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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>
Makes <em class="parameter"><code>model</code></em> try to compute INSERT, UPDATE and DELETE statements to be used when modifying <em class="parameter"><code>model</code></em>'s contents.
Note: any modification statement set using <a class="link" href="GdaDataSelect.html#gda-data-select-set-modification-statement" title="gda_data_select_set_modification_statement ()"><code class="function">gda_data_select_set_modification_statement()</code></a> will first be unset
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</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 href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if no error occurred. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned, then some modification statement may still have been computed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-compute-columns-attributes"></a><h3>gda_data_select_compute_columns_attributes ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_compute_columns_attributes
                                                        (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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>
Computes correct attributes for each of <em class="parameter"><code>model</code></em>'s columns, which includes the "NOT NULL" attribute, the
default value, the precision and scale for numeric values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</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>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-rerun"></a><h3>gda_data_select_rerun ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_data_select_rerun               (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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>
Requests that <em class="parameter"><code>model</code></em> be re-run to have an updated result. If an error occurs,
then <em class="parameter"><code>model</code></em> will not be changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> data model</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 href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if no error occurred</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-select-add-exception"></a><h3>gda_data_select_add_exception ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gda_data_select_add_exception       (<em class="parameter"><code><a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> *model</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>
Add an exception to <em class="parameter"><code>model</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>an error to add as exception. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 4.2.6</p>
</div>
</div>
<div class="refsect1">
<a name="GdaDataSelect.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GdaDataSelect--auto-reset"></a><h3>The <code class="literal">"auto-reset"</code> property</h3>
<pre class="programlisting">  "auto-reset"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Automatically re-run the SELECT statement if any parameter has changed since it was first executed.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--connection"></a><h3>The <code class="literal">"connection"</code> property</h3>
<pre class="programlisting">  "connection"               <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a>*        : Read / Write / Construct Only</pre>
<p>Connection from which this data model is created.</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--delete-stmt"></a><h3>The <code class="literal">"delete-stmt"</code> property</h3>
<pre class="programlisting">  "delete-stmt"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read / Write</pre>
<p>DELETE Statement to be executed to remove data.</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--exec-params"></a><h3>The <code class="literal">"exec-params"</code> property</h3>
<pre class="programlisting">  "exec-params"              <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a>*               : Read / Write / Construct Only</pre>
<p>GdaSet used when the SELECT statement was executed.</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--insert-stmt"></a><h3>The <code class="literal">"insert-stmt"</code> property</h3>
<pre class="programlisting">  "insert-stmt"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read / Write</pre>
<p>INSERT Statement to be executed to add data.</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--model-usage"></a><h3>The <code class="literal">"model-usage"</code> property</h3>
<pre class="programlisting">  "model-usage"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a>                 : Read / Write / Construct Only</pre>
<p>Determines how the data model may be used.</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--prepared-stmt"></a><h3>The <code class="literal">"prepared-stmt"</code> property</h3>
<pre class="programlisting">  "prepared-stmt"            <a class="link" href="GdaPStmt.html" title="GdaPStmt"><span class="type">GdaPStmt</span></a>*             : Read / Write</pre>
<p>Associated prepared statement (for internal usage).</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--select-stmt"></a><h3>The <code class="literal">"select-stmt"</code> property</h3>
<pre class="programlisting">  "select-stmt"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read</pre>
<p>SELECT statement which was executed to yield to the data model.</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--store-all-rows"></a><h3>The <code class="literal">"store-all-rows"</code> property</h3>
<pre class="programlisting">  "store-all-rows"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Tells if model has analyzed all the rows.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataSelect--update-stmt"></a><h3>The <code class="literal">"update-stmt"</code> property</h3>
<pre class="programlisting">  "update-stmt"              <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a>*         : Read / Write</pre>
<p>UPDATE Statement to be executed to update data.</p>
</div>
</div>
<div class="refsect1">
<a name="GdaDataSelect.see-also"></a><h2>See Also</h2>
<p>
  The <a class="link" href="data-select.html" title="Advanced GdaDataSelect usage">Advanced GdaDataSelect usage</a> section.
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>