Creates a new #GdaMetaContext struct with a #GHashTable to store column/value pairs.
an array of column names (columns of the table_name
table)
an array of values, one for each column named in column_names
A #GHashTable storing columns' name as key and #GValue as column's value.
the size of the column_names
and column_values
arrays
the name of the table
Copy constructor.
Frees any resources taken by ctx
struct. If ctx
is %NULL, then nothing happens.
Get table's name to used in the context.
Sets a new column/value pair to the given context ctx
. Column, must be a column in the given table's
name setted by #gda_meta_context_set_table () (a table in the database
schema). If the given column
already exists it's value is overwrited.
Column's name and value is copied and destroyed when #gda_meta_context_free is called.
the column's name
the column's value
a #GdaConnection to be used when identifier are normalized, or NULL
Set columns to use in the context. The #GHashTable use column's name as key and a #GValue as value, to represent its value.
columns
incements its reference counting. Is recommended to use #gda_meta_context_free in order to free them.
a #GHashTable with the table's columns' name and their values to use in context.
a #GdaConnection to used to normalize identifiers quoting, or NULL
Set table's name to use in the context. The table is one of database schema used to store meta information about the database. Use "_tables" to update meta information about database's tables.
a string with the table's name to use in context
Creates a new #GdaMetaContext struct with a #GHashTable to store column/value pairs.
TheGdaMetaContext represents a meta data modification
context: the how when used with gda_meta_store_modify_with_context(),
and the what when used with gda_connection_update_meta_store().
To create a new #GdaMetaContext use #gda_meta_context_new.
To add a new column/value pair use #gda_meta_context_add_column.
To free a #GdaMetaContext, created by #gda_meta_context_new, use #gda_attributes_manager_free.
Since 5.2, you must consider this struct as opaque. Any access to its internal must use public API. Don't try to use #gda_meta_context_free on a struct that was created manually.