README
1Libgda simple example
2=====================
3
4Description:
5------------
6
7The example in this directory illustrate how to use a GdaTree to display the database structure
8in a hierarchical way:
9* a top level node is created for each schema in the database (here there is only the "main" schema)
10* below each schema nodes are created for each table in the schema
11* a top level node is created for each table visible by default (here all the tables)
12* below each node representing a table, nodes are created for each column in the table.
13This organization is illustrated in the GdaTree introduction in the documentation.
14
15Compiling and running:
16----------------------
17
18To compile (make sure Libgda is installed prior to this):
19> make
20
21and to run:
22> ./example
23
24Output:
25-------
26Running should produce the following output:
27
28Updating meta store...done
29.
30|-- main
31| |-- categories
32| | |-- categoryname
33| | `-- id
34| |-- customers
35| | |-- city
36| | |-- country
37| | |-- default_served_by
38| | |-- name
39| | `-- id
40| |-- locations
41| | |-- shortcut
42| | |-- city
43| | `-- country
44[...]
45|-- categories
46| |-- categoryname
47| `-- id
48|-- customers
49| |-- city
50| |-- country
51| |-- default_served_by
52| |-- name
53| `-- id
54|-- locations
55| |-- shortcut
56| |-- city
57| `-- country
58[...]
59