## GnomeDbCanvasDbRelations GnomeDbCanvasDbRelations — Graphical representation of the relations (foreign key constreints) in the database. |

## Synopsis

    GtkWidget*          gnome_db_canvas_db_relations_new    (GdaMetaStore *store);
    GnomeDbCanvasTable* gnome_db_canvas_db_relations_get_table_item
                                                            (GnomeDbCanvasDbRelations *canvas,
                                                             GdaMetaTable *table);
    GnomeDbCanvasTable* gnome_db_canvas_db_relations_add_table_item
                                                            (GnomeDbCanvasDbRelations *canvas,
                                                             const GValue *table_catalog,
                                                             const GValue *table_schema,
                                                             const GValue *table_name);

## Description

This object uses a GdaGraph object to be able to tell which table is displayed, and where on the canvas.

## Details

### gnome_db_canvas_db_relations_new ()

    GtkWidget*          gnome_db_canvas_db_relations_new    (GdaMetaStore *store);

Creates a new canvas widget to display the relations between the database's tables. The database is the one managed by the GdaDict object which `graph` refers.

After the GnomeDbCanvasDbRelations has been created, it is possible to display the tables as listed in a GdaGdaph by setting the "graph" property (using `g_object_set()`).

`store` : |
Returns : | a new GnomeDbCanvasDbRelations widget

### gnome_db_canvas_db_relations_get_table_item ()

    GnomeDbCanvasTable* gnome_db_canvas_db_relations_get_table_item
                                                            (GnomeDbCanvasDbRelations *canvas,
                                                             GdaMetaTable *table);

`canvas` : |
`table` : |
Returns : |

### gnome_db_canvas_db_relations_add_table_item ()

    GnomeDbCanvasTable* gnome_db_canvas_db_relations_add_table_item
                                                            (GnomeDbCanvasDbRelations *canvas,
                                                             const GValue *table_catalog,
                                                             const GValue *table_schema,
                                                             const GValue *table_name);

Add a table to `canvas`.

`canvas` : | a GnomeDbCanvasDbRelations canvas
`table_catalog` : | the catalog in which the table is, or `NULL`
`table_schema` : | the schema in which the table is, or `NULL`
`table_name` : | the table's name
Returns : | the corresponding canvas item, or `NULL` if the table was not found.