GdaXmlDatabase* gda_xml_database_new (void);
GdaXmlDatabase* gda_xml_database_new_from_file
(const gchar *filename);
void gda_xml_database_free (GdaXmlDatabase *xmldb);
void gda_xml_database_save (GdaXmlDatabase *xmldb,
const gchar *filename);
void gda_xml_database_changed (GdaXmlDatabase *xmldb);
#define gda_xml_database_get_tables (_xmldb_)
#define gda_xml_database_get_views (_xmldb_)
GdaXmlTable* gda_xml_database_table_new (GdaXmlDatabase *xmldb,
gchar *tname);
void gda_xml_database_table_remove (GdaXmlDatabase *xmldb,
const gchar *tname);
GdaXmlTable* gda_xml_database_table_find (GdaXmlDatabase *xmldb,
const gchar *tname);
const gchar* gda_xml_database_table_get_name
(GdaXmlDatabase *xmldb,
xmlNodePtr table);
void gda_xml_database_table_set_name (GdaXmlDatabase *xmldb,
GdaXmlTable *table,
const gchar *tname);
const gchar* gda_xml_database_table_get_owner
(GdaXmlDatabase *xmldb,
GdaXmlTable *table);
void gda_xml_database_table_set_owner
(GdaXmlDatabase *xmldb,
GdaXmlTable *table,
const gchar *owner);
gint gda_xml_database_table_field_count
(GdaXmlDatabase *xmldb,
GdaXmlTable *table);
GdaXmlField* gda_xml_database_table_add_field
(GdaXmlDatabase *xmldb,
GdaXmlTable *table,
const gchar *fname);
void gda_xml_database_table_remove_field
(GdaXmlDatabase *xmldb,
GdaXmlTable *table,
const gchar *fname);
GdaXmlField* gda_xml_database_table_get_field
(GdaXmlDatabase *xmldb,
GdaXmlTable *table,
gint pos);
GdaXmlField* gda_xml_database_table_find_field
(GdaXmlDatabase *xmldb,
GdaXmlTable *table,
const gchar *fname);
const gchar* gda_xml_database_field_get_name
(GdaXmlDatabase *xmldb,
GdaXmlField *field);
void gda_xml_database_field_set_name (GdaXmlDatabase *xmldb,
GdaXmlField *field,
const gchar *name);
const gchar* gda_xml_database_field_get_gdatype
(GdaXmlDatabase *xmldb,
GdaXmlField *field);
void gda_xml_database_field_set_gdatype
(GdaXmlDatabase *xmldb,
GdaXmlField *field,
const gchar *type);
gint gda_xml_database_field_get_size (GdaXmlDatabase *xmldb,
GdaXmlField *field);
void gda_xml_database_field_set_size (GdaXmlDatabase *xmldb,
GdaXmlField *field,
gint size);
gint gda_xml_database_field_get_scale
(GdaXmlDatabase *xmldb,
GdaXmlField *field);
void gda_xml_database_field_set_scale
(GdaXmlDatabase *xmldb,
GdaXmlField *field,
gint scale);
|