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
[...]
|