MetaContext

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.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GdaMetaContext struct with a #GHashTable to store column/value pairs.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
copy
gda.meta_context.MetaContext copy()

Copy constructor.

getTable
string getTable()

Get table's name to used in the context.

self
MetaContext self()

Returns this, for use in with statements.

setColumn
void setColumn(string column, gobject.value.Value value, gda.connection.Connection cnc)

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 <link linkend="information_schema">database schema</link>). If the given column already exists it's value is overwrited.

setTable
void setTable(string table)

Set table's name to use in the context. The table is one of <link linkend="information_schema">database schema</link> used to store meta information about the database. Use "_tables" to update meta information about database's tables.

Properties

_gType
GType _gType [@property getter]
size
int size [@property getter]

Get size field.

size
int size [@property setter]

Set size field.

tableName
string tableName [@property getter]

Get tableName field.

tableName
string tableName [@property setter]

Set tableName field.

Static functions

_getGType
GType _getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.