Description
The GdaXmlDatabase object provides a convenient way of managing the contents
of a XML database file, that is, the files used by libgda for
importing/exporting data between GDA data sources.
The format being used for this file is XML, which provides a powerful way
of describing a whole database (tables, views, etc), so that we can easily
copy data from one data source to another, unrelated, one.
Thus, this module provides the functions you need to programatically
read and write this kind of files, so that you can yourself use the
import/export features of libgda.
Details
struct GdaXmlDatabasePrivate
struct GdaXmlDatabasePrivate; |
gda_xml_database_new ()
Creates a new GdaXmlDatabase object, which can be used to describe
a database which will then be loaded by a provider to create its
defined structure
gda_xml_database_new_from_file ()
GdaXmlDatabase* gda_xml_database_new_from_file
(const gchar *filename); |
gda_xml_database_free ()
Destroys the given XML database
gda_xml_database_save ()
gboolean gda_xml_database_save (GdaXmlDatabase *xmldb,
const gchar *filename); |
gda_xml_database_changed ()
Emit the "changed" signal for the given XML database
GdaXmlDatabaseTable
typedef xmlNode GdaXmlDatabaseTable; |
gda_xml_database_get_tables ()
gda_xml_database_table_new ()
Add a new table description to the given XML database. If tname already exists,
this function fails.
gda_xml_database_table_remove ()
gda_xml_database_table_find ()
Looks for the specified table in a XML database
gda_xml_database_table_get_name ()
gda_xml_database_table_set_name ()
gda_xml_database_table_get_owner ()
gda_xml_database_table_set_owner ()
GdaXmlDatabaseField
typedef xmlNode GdaXmlDatabaseField; |
gda_xml_database_table_field_count ()
gda_xml_database_table_add_field ()
Add a new field to the given table
gda_xml_database_table_remove_field ()
gda_xml_database_table_get_field ()
gda_xml_database_table_find_field ()
Look for the given field in the given table
gda_xml_database_field_get_name ()
Return the name of the given field
gda_xml_database_field_set_name ()
gda_xml_database_field_get_gdatype ()
gda_xml_database_field_set_gdatype ()
gda_xml_database_field_get_size ()
gda_xml_database_field_set_size ()
gda_xml_database_field_get_scale ()
gda_xml_database_field_set_scale ()