File: README

package info (click to toggle)
libgda5 5.2.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,168 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (58 lines) | stat: -rw-r--r-- 1,319 bytes parent folder | download | duplicates (8)
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
Libgda simple example
=====================

Description:
------------

The example in this directory illustrate how to use a GdaTree to display the database structure
in a hierarchical way:
* a top level node is created for each schema in the database (here there is only the "main" schema)
* below each schema nodes are created for each table in the schema
* a top level node is created for each table visible by default (here all the tables)
* below each node representing a table, nodes are created for each column in the table.
This organization is illustrated in the GdaTree introduction in the documentation.

Compiling and running:
----------------------

To compile (make sure Libgda is installed prior to this):
> make

and to run:
> ./example

Output:
-------
Running should produce the following output:

Updating meta store...done
.
|-- main
|   |-- categories
|   |   |-- categoryname
|   |   `-- id
|   |-- customers
|   |   |-- city
|   |   |-- country
|   |   |-- default_served_by
|   |   |-- name
|   |   `-- id
|   |-- locations
|   |   |-- shortcut
|   |   |-- city
|   |   `-- country
[...]
|-- categories
|   |-- categoryname
|   `-- id
|-- customers
|   |-- city
|   |-- country
|   |-- default_served_by
|   |-- name
|   `-- id
|-- locations
|   |-- shortcut
|   |-- city
|   `-- country
[...]