Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | gda_type_to_string () |
GdaValueType | gda_type_from_string () |
GList * | gda_string_hash_to_list () |
gchar * | gda_sql_replace_placeholders () |
gchar * | gda_file_load () |
gboolean | gda_file_save () |
const gchar *
gda_type_to_string (GdaValueType type
);
the string representing the given GdaValueType.
This is not necessarily the same string used to describe the column type in a SQL statement.
Use gda_connection_get_schema()
with GDA_CONNECTION_SCHEMA_TYPES to get the actual types supported by the provider.
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.
gchar * gda_sql_replace_placeholders (const gchar *sql
,GdaParameterList *params
);
Replaces the placeholders (:name) in the given SQL command with
the values from the GdaParameterList specified as the params
argument.
sql |
a SQL command containing placeholders for values. |
|
params |
a list of values for the placeholders. |
the SQL string with all placeholders replaced, or NULL
on error. On success, the returned string must be freed by the caller
when no longer needed.
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.