|  |  |  | GNOME Data Access manual |  | 
|---|---|---|---|---|
GList* gda_string_hash_to_list (GHashTable *hash_table); gchar* gda_default_escape_chars (const gchar *string); gchar* gda_file_load (const gchar *filename); gboolean gda_file_save (const gchar *filename, const gchar *buffer, gint len); gint gda_server_provider_get_schema_nb_columns (GdaConnectionSchema schema); gboolean gda_server_provider_init_schema_model (GdaDataModel *model, GdaConnectionSchema schema);
GList* gda_string_hash_to_list (GHashTable *hash_table);
Creates a new list of strings, which contains all keys of a given hash table. After using it, you should free this list by calling g_list_free.
| hash_table: | a hash table. | 
| Returns : | a new GList. | 
gchar* gda_default_escape_chars (const gchar *string);
Escapes string to make it understandable by a DBMS. The escape method is very common and replaces any
occurence of "'" with "\'" and "\" with "\\".
| string: | string to escape | 
| Returns : | 
gchar* gda_file_load (const gchar *filename);
Loads a file, specified by the given uri, and returns the file
contents as a string.
It is the caller's responsibility to free the returned value.
| filename: | path for the file to be loaded. | 
| Returns : | the file contents as a newly-allocated string, or NULLif there is an error. | 
gboolean    gda_file_save                   (const gchar *filename,
                                             const gchar *buffer,
                                             gint len);
Saves a chunk of data into a file.
| filename: | path for the file to be saved. | 
| buffer: | contents of the file. | 
| len: | size of buffer. | 
| Returns : | TRUEif successful,FALSEon error. | 
gint        gda_server_provider_get_schema_nb_columns
                                            (GdaConnectionSchema schema);
| schema: | |
| Returns : | the number of columns the GdaDataModel for the requested schema must have | 
gboolean    gda_server_provider_init_schema_model
                                            (GdaDataModel *model,
                                             GdaConnectionSchema schema);
Sets the column attributes of model for the requested schema
| model: | |
| schema: | |
| Returns : | TRUE if there was no error |