![]() |
![]() |
![]() |
GNOME Data Access 3.0 manual | ![]() |
---|---|---|---|---|
GList* gda_string_hash_to_list (GHashTable *hash_table); gchar* gda_default_escape_string (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.
|
a hash table. |
Returns : |
a new GList. |
gchar* gda_default_escape_string (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 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.
|
path for the file to be loaded. |
Returns : |
the file contents as a newly-allocated string, or NULL
if there is an error.
|
gboolean gda_file_save (const gchar *filename, const gchar *buffer, gint len);
Saves a chunk of data into a file.
|
path for the file to be saved. |
|
contents of the file. |
|
size of buffer .
|
Returns : |
TRUE if successful, FALSE on error.
|
gint gda_server_provider_get_schema_nb_columns (GdaConnectionSchema 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
|
|
|
|
Returns : |
TRUE if there was no error |