File: libgda-GdaXmlDatabase.html

package info (click to toggle)
libgda2 1.2.4-1.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,724 kB
  • ctags: 6,979
  • sloc: ansic: 47,166; xml: 19,896; sh: 8,797; makefile: 863; yacc: 202; lex: 129; cpp: 73
file content (634 lines) | stat: -rw-r--r-- 26,176 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
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
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdaXmlDatabase</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GNOME Data Access manual">
<link rel="up" href="libgda-api.html" title="Client API Reference">
<link rel="prev" href="libgda-GdaXmlConnection.html" title="GdaXmlConnection">
<link rel="next" href="libgda-GdaXmlDocument.html" title="GdaXmlDocument">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="introduction.html" title="Introduction">
<link rel="chapter" href="architecture.html" title="libgda architecture">
<link rel="chapter" href="installation.html" title="Installation">
<link rel="chapter" href="connecting.html" title="Beginning">
<link rel="chapter" href="processing-queries.html" title="Processing queries">
<link rel="chapter" href="ch06.html" title="Transactions and batch processes">
<link rel="chapter" href="managing-errors.html" title="Managing errors">
<link rel="chapter" href="main_example.html" title="Full example">
<link rel="chapter" href="migration.html" title="Some formulae for migration from old version">
<link rel="chapter" href="libgda-api.html" title="Client API Reference">
<link rel="chapter" href="libgda-providers.html" title="GDA Providers">
<link rel="chapter" href="libgda-xql.html" title="XML Queries">
<link rel="chapter" href="libgda-reports.html" title="GDA Report Engine">
<link rel="appendix" href="fdl.html" title="Appendix A. GNU Free Documentation License">
</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-GdaXmlConnection.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgda-api.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 manual</th>
<td><a accesskey="n" href="libgda-GdaXmlDocument.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgda-GdaXmlDatabase.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libgda-GdaXmlDatabase.description" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgda-GdaXmlDatabase"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgda-GdaXmlDatabase.top_of_page"></a>GdaXmlDatabase</span></h2>
<p>GdaXmlDatabase — XML database representation (used for import/export and in the default provider)</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgda-GdaXmlDatabase.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
                    <a class="link" href="libgda-GdaXmlDatabase.html#GdaXmlDatabasePrivate" title="GdaXmlDatabasePrivate">GdaXmlDatabasePrivate</a>;
GdaXmlDatabase*     <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-new" title="gda_xml_database_new ()">gda_xml_database_new</a>                (void);
GdaXmlDatabase*     <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-new-from-uri" title="gda_xml_database_new_from_uri ()">gda_xml_database_new_from_uri</a>       (const gchar *uri);
const gchar*        <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-name" title="gda_xml_database_get_name ()">gda_xml_database_get_name</a>           (GdaXmlDatabase *xmldb);
void                <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-set-name" title="gda_xml_database_set_name ()">gda_xml_database_set_name</a>           (GdaXmlDatabase *xmldb,
                                                         const gchar *name);
const gchar*        <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-user-version" title="gda_xml_database_get_user_version ()">gda_xml_database_get_user_version</a>   (GdaXmlDatabase *xmldb);
void                <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-set-user-version" title="gda_xml_database_set_user_version ()">gda_xml_database_set_user_version</a>   (GdaXmlDatabase *xmldb,
                                                         const gchar *user_version);
const gchar*        <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-version" title="gda_xml_database_get_version ()">gda_xml_database_get_version</a>        (GdaXmlDatabase *xmldb);
const gchar*        <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-uri" title="gda_xml_database_get_uri ()">gda_xml_database_get_uri</a>            (GdaXmlDatabase *xmldb);
void                <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-set-uri" title="gda_xml_database_set_uri ()">gda_xml_database_set_uri</a>            (GdaXmlDatabase *xmldb,
                                                         const gchar *uri);
void                <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-changed" title="gda_xml_database_changed ()">gda_xml_database_changed</a>            (GdaXmlDatabase *xmldb);
void                <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-reload" title="gda_xml_database_reload ()">gda_xml_database_reload</a>             (GdaXmlDatabase *xmldb);
gboolean            <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-save" title="gda_xml_database_save ()">gda_xml_database_save</a>               (GdaXmlDatabase *xmldb,
                                                         const gchar *uri);
gchar*              <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-to-string" title="gda_xml_database_to_string ()">gda_xml_database_to_string</a>          (GdaXmlDatabase *xmldb);
GList*              <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-tables" title="gda_xml_database_get_tables ()">gda_xml_database_get_tables</a>         (GdaXmlDatabase *xmldb);
void                <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-free-table-list" title="gda_xml_database_free_table_list ()">gda_xml_database_free_table_list</a>    (GList *list);
GdaTable*           <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-find-table" title="gda_xml_database_find_table ()">gda_xml_database_find_table</a>         (GdaXmlDatabase *xmldb,
                                                         const gchar *name);
GdaTable*           <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-new-table" title="gda_xml_database_new_table ()">gda_xml_database_new_table</a>          (GdaXmlDatabase *xmldb,
                                                         const gchar *name);
GdaTable*           <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-new-table-from-model" title="gda_xml_database_new_table_from_model ()">gda_xml_database_new_table_from_model</a>
                                                        (GdaXmlDatabase *xmldb,
                                                         const gchar *name,
                                                         const <a class="link" href="libgda-gda-row.html#GdaDataModel" title="GdaDataModel">GdaDataModel</a> *model,
                                                         gboolean add_data);
GdaTable*           <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-new-table-from-node" title="gda_xml_database_new_table_from_node ()">gda_xml_database_new_table_from_node</a>
                                                        (GdaXmlDatabase *xmldb,
                                                         xmlNodePtr node);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="libgda-GdaXmlDatabase.description"></a><h2>Description</h2>
<p>
 The <span class="type">GdaXmlDatabase</span> class allows programs to manage databases in XML format
 (the format used by libgda for importing/exporting databases). It contains
 functions to easily manage those XML files.
</p>
<p>
 With this set of functions, applications can bypass the normal libgda
 operation mode (via <a class="link" href="libgda-GdaConnection.html#GdaClient" title="GdaClient"><span class="type">GdaClient</span></a> to access data sources), and have a direct
 access to the data in the XML file.
</p>
</div>
<div class="refsect1" lang="en">
<a name="libgda-GdaXmlDatabase.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GdaXmlDatabasePrivate"></a><h3>GdaXmlDatabasePrivate</h3>
<pre class="programlisting">typedef struct _GdaXmlDatabasePrivate GdaXmlDatabasePrivate;</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-new"></a><h3>gda_xml_database_new ()</h3>
<pre class="programlisting">GdaXmlDatabase*     gda_xml_database_new                (void);</pre>
<p>
Creates a new <span class="type">GdaXmlDatabase</span> object, which can be used to describe
a database which will then be loaded by a provider to create its
defined structure.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the newly created object.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-new-from-uri"></a><h3>gda_xml_database_new_from_uri ()</h3>
<pre class="programlisting">GdaXmlDatabase*     gda_xml_database_new_from_uri       (const gchar *uri);</pre>
<p>
Creates a new <span class="type">GdaXmlDatabase</span> object from a XML representation, 
contained in the given <em class="parameter"><code>uri</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> an uniform resource identifier.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the newly created object.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-get-name"></a><h3>gda_xml_database_get_name ()</h3>
<pre class="programlisting">const gchar*        gda_xml_database_get_name           (GdaXmlDatabase *xmldb);</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the name of the given XML database.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-set-name"></a><h3>gda_xml_database_set_name ()</h3>
<pre class="programlisting">void                gda_xml_database_set_name           (GdaXmlDatabase *xmldb,
                                                         const gchar *name);</pre>
<p>
Sets the name of the given XML database object.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> new name for the database.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-get-user-version"></a><h3>gda_xml_database_get_user_version ()</h3>
<pre class="programlisting">const gchar*        gda_xml_database_get_user_version   (GdaXmlDatabase *xmldb);</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the user defined version of the given <span class="type">GdaXmlDatabase</span> object.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-set-user-version"></a><h3>gda_xml_database_set_user_version ()</h3>
<pre class="programlisting">void                gda_xml_database_set_user_version   (GdaXmlDatabase *xmldb,
                                                         const gchar *user_version);</pre>
<p>
Sets the user defined version of the given XML database.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_version</code></em> :</span></p></td>
<td> user defined version string.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-get-version"></a><h3>gda_xml_database_get_version ()</h3>
<pre class="programlisting">const gchar*        gda_xml_database_get_version        (GdaXmlDatabase *xmldb);</pre>
<p>
Gets the version of libgda used to create the <span class="type">GdaXmlDatabase</span> object.
This version is the one that was used for saving the XML file last 
time it was saved. This value can only be "get" as it is an internal
information related to the creation of the <span class="type">GdaXmlDatabase</span> object.
To get the user defined database version, use the function
gda_xml_database_get_user_version instead.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the libgda version used to create the database.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-get-uri"></a><h3>gda_xml_database_get_uri ()</h3>
<pre class="programlisting">const gchar*        gda_xml_database_get_uri            (GdaXmlDatabase *xmldb);</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the URI associated with the given XML database. This URI will
be used when saving the XML database (<a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-save" title="gda_xml_database_save ()"><span class="type">gda_xml_database_save</span></a>).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-set-uri"></a><h3>gda_xml_database_set_uri ()</h3>
<pre class="programlisting">void                gda_xml_database_set_uri            (GdaXmlDatabase *xmldb,
                                                         const gchar *uri);</pre>
<p>
Associates an <em class="parameter"><code>uri</code></em> with a given XML database. This URI will
be used when saving the XML database (<a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-save" title="gda_xml_database_save ()"><span class="type">gda_xml_database_save</span></a>).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> an uniform resource identifier.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-changed"></a><h3>gda_xml_database_changed ()</h3>
<pre class="programlisting">void                gda_xml_database_changed            (GdaXmlDatabase *xmldb);</pre>
<p>
Emits the "changed" signal for the given XML database.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-reload"></a><h3>gda_xml_database_reload ()</h3>
<pre class="programlisting">void                gda_xml_database_reload             (GdaXmlDatabase *xmldb);</pre>
<p>
Reloads the given XML database from its original place, discarding
all changes that may have happened.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-save"></a><h3>gda_xml_database_save ()</h3>
<pre class="programlisting">gboolean            gda_xml_database_save               (GdaXmlDatabase *xmldb,
                                                         const gchar *uri);</pre>
<p>
Saves the given XML database to disk.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> URI to save the XML database to.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if the database was successfully saved, <code class="literal">FALSE</code> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-to-string"></a><h3>gda_xml_database_to_string ()</h3>
<pre class="programlisting">gchar*              gda_xml_database_to_string          (GdaXmlDatabase *xmldb);</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> a <span class="type">GdaXmlDatabase</span> object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the XML string representing the structure and contents of the
given <span class="type">GdaXmlDatabase</span> object. The returned value must be freed when no
longer needed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-get-tables"></a><h3>gda_xml_database_get_tables ()</h3>
<pre class="programlisting">GList*              gda_xml_database_get_tables         (GdaXmlDatabase *xmldb);</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a GList of all table names present in the given database.
You must free the returned GList when you no longer need it, by
using the <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-free-table-list" title="gda_xml_database_free_table_list ()"><span class="type">gda_xml_database_free_table_list</span></a> function.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-free-table-list"></a><h3>gda_xml_database_free_table_list ()</h3>
<pre class="programlisting">void                gda_xml_database_free_table_list    (GList *list);</pre>
<p>
Frees a GList of strings returned by <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-tables" title="gda_xml_database_get_tables ()"><span class="type">gda_xml_database_get_tables</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> list of table names, as returned by <a class="link" href="libgda-GdaXmlDatabase.html#gda-xml-database-get-tables" title="gda_xml_database_get_tables ()"><span class="type">gda_xml_database_get_tables</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-find-table"></a><h3>gda_xml_database_find_table ()</h3>
<pre class="programlisting">GdaTable*           gda_xml_database_find_table         (GdaXmlDatabase *xmldb,
                                                         const gchar *name);</pre>
<p>
Searches the given XML database for a table named <em class="parameter"><code>name</code></em>, and
returns a pointer to it.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> name for the table to look for.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a pointer to the table, or <code class="literal">NULL</code> if not found.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-new-table"></a><h3>gda_xml_database_new_table ()</h3>
<pre class="programlisting">GdaTable*           gda_xml_database_new_table          (GdaXmlDatabase *xmldb,
                                                         const gchar *name);</pre>
<p>
Creates a new empty table in the given XML database.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> name for the new table.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a pointer to the newly created in-memory table.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-new-table-from-model"></a><h3>gda_xml_database_new_table_from_model ()</h3>
<pre class="programlisting">GdaTable*           gda_xml_database_new_table_from_model
                                                        (GdaXmlDatabase *xmldb,
                                                         const gchar *name,
                                                         const <a class="link" href="libgda-gda-row.html#GdaDataModel" title="GdaDataModel">GdaDataModel</a> *model,
                                                         gboolean add_data);</pre>
<p>
Creates a new table in the given XML database from the given
<a class="link" href="libgda-gda-row.html#GdaDataModel" title="GdaDataModel"><span class="type">GdaDataModel</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> name for the new table.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td> model to create the table from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>add_data</code></em> :</span></p></td>
<td> whether to add model's data or not.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a pointer to the newly created in-memory table.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gda-xml-database-new-table-from-node"></a><h3>gda_xml_database_new_table_from_node ()</h3>
<pre class="programlisting">GdaTable*           gda_xml_database_new_table_from_node
                                                        (GdaXmlDatabase *xmldb,
                                                         xmlNodePtr node);</pre>
<p>
Adds a table to the given XML database by parsing the given
XML node pointer, which usually is obtained from an
already loaded xmlDocPtr.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmldb</code></em> :</span></p></td>
<td> XML Database.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td> a XML node pointer.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a pointer to the newly created in-memory table.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="libgda-GdaXmlDatabase.see-also"></a><h2>See Also</h2>
<p>
 <span class="type">GdaTable</span>
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.10</div>
</body>
</html>