gda.meta_context

Module for [MetaContext] class

Types 1

The <structname>GdaMetaContext</structname> represents a meta data modification context: the <emphasis>how</emphasis> when used with [gda.meta_store.MetaStore.modifyWithContext], and the <emphasis>what</emphasis> when used with [gda.connection.Connection.updateMetaStore].

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
MetaContext self()Returns `this`, for use in `with` statements.
string tableName() @propertyGet `tableName` field. Returns: the name of the table <emphasis>in the GdaMetaStore's internal database</emphasis>
void tableName(string propval) @propertySet `tableName` field. Params: propval = the name of the table <emphasis>in the GdaMetaStore's internal database</emphasis>
int size() @propertyGet `size` field. Returns: the size of the @columnnames and @columnvalues arrays
void size(int propval) @propertySet `size` field. Params: propval = the size of the @columnnames and @columnvalues arrays
gda.meta_context.MetaContext copy()Copy constructor. Returns: a new #GdaMetaContext
string getTable()Get table's name to used in the context. Returns: A string with the table's name used in the context.
void setColumn(string column, gobject.value.Value value, gda.connection.Connection cnc = null)Sets a new column/value pair to the given context ctx. Column, must be a column in the given table's name setted by #gdametacontextsettable () (a table in the <link linkend="information_schema">dat...
void setTable(string table)Set table's name to use in the context. The table is one of <link linkend="informationschema">database schema</link> used to store meta information about the database. Use "tables" to update meta i...
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GdaMetaContext struct with a #GHashTable to store column/value pairs. Returns: a new #GdaMetaContext struct with a new created hash to store column name/value pairs.