gda.meta_store

Module for [MetaStore] class

Types 4

Methods
GType _gType() @property
MetaStore self()Returns `this`, for use in `with` statements.
MetaStoreGidBuilder builder()Get builder for [gda.meta_store.MetaStore] Returns: New builder object
gda.meta_store.MetaStore newWithFile(string fileName)Create a new #GdaMetaStore object using file_name as its internal database
string sqlIdentifierQuote(string id, gda.connection.Connection cnc)Use this method to get a correctly quoted (if necessary) SQL identifier which can be used to retrieve or filter information in a #GdaMetaStore which stores meta data about cnc.
gda.data_model.DataModel createModifyDataModel(string tableName)Creates a new #GdaDataModelArray data model which can be used, after being correctly filled, with the gdametastore_modify() methods.
bool declareForeignKey(gda.meta_struct.MetaStruct mstruct, string fkName, string catalog, string schema, string table, string refCatalog, string refSchema, string refTable, string[] colnames, string[] refColnames)Defines a new declared foreign key into store. If another declared foreign key is already defined between the two tables and with the same name, then it is first removed.
bool getAttributeValue(string attName, out string attValue)The #GdaMetaStore object maintains a list of (name,value) attributes (attributes names starting with a '' character are for internal use only and cannot be altered). This method and the [gda.metast...
gda.connection.Connection getInternalConnection()Get a pointer to the #GdaConnection object internally used by store to store its contents.
int getVersion()Get store's internal schema's version Returns: the version (incremented each time the schema changes, backward compatible)
bool modify(string tableName, gda.data_model.DataModel newData, string condition, string[] valueNames, gobject.value.Value[] values)Propagates an update to store, the update's contents is represented by new_data, this function is primarily reserved to database providers.
bool modifyWithContext(gda.meta_context.MetaContext context, gda.data_model.DataModel newData = null)Propagates an update to store, the update's contents is represented by new_data, this function is primarily reserved to database providers.
bool schemaAddCustomObject(string xmlDescription)The internal database used by store can be 'augmented' with some user-defined database objects (such as tables or views). This method allows one to add a new database object.
string[] schemaGetAllTables()Get an ordered list of the tables store knows about. The tables are ordered in a way that tables dependencies are respected: if table B has a foreign key on table A, then table A will be listed bef...
string[] schemaGetDependTables(string tableName)Get an ordered list of the tables store knows about on which the table_name table depends (recursively). The tables are ordered in a way that tables dependencies are respected: if table B has a for...
gda.meta_struct.MetaStruct schemaGetStructure()Creates a new #GdaMetaStruct object representing store's internal database structure. Returns: a new #GdaMetaStruct object, or null if an error occurred Throws: [MetaStoreException]
bool schemaRemoveCustomObject(string objName)Removes the custom database object named obj_name.
bool setAttributeValue(string attName, string attValue = null)Set the value of the attribute named attname to attvalue; see [gda.meta_store.MetaStore.getAttributeValue] for more information.
void setIdentifiersStyle(gda.types.SqlIdentifierStyle style)Specifies how store must handle SQL identifiers it has to store. This method is mainly used by database providers.
void setReservedKeywordsFunc(gda.types.SqlReservedKeywordsFunc func = null)Specifies a function which store will use to determine if a keyword is an SQL reserved keyword or not.
bool undeclareForeignKey(gda.meta_struct.MetaStruct mstruct, string fkName, string catalog, string schema, string table, string refCatalog, string refSchema, string refTable)Removes a declared foreign key from store.
gulong connectMetaReset(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.meta_store.MetaStore))) && Parameters!T.length < 2)Connect to `MetaReset` signal.
gulong connectSuggestUpdate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == glib.error.ErrorWrap) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gda.meta_context.MetaContext))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.meta_store.MetaStore))) && Parameters!T.length < 3)Connect to `SuggestUpdate` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(string cncString = null)Create a new #GdaMetaStore object.
Methods
T catalog(string propval)
T cncString(string propval)
T schema(string propval)

Fluent builder for [gda.meta_store.MetaStore]

Methods
Constructors
this(GError * err)
this(Code code, string msg)