extract


Description:

[ CCode ( cname = "gda_meta_store_extract_v" ) ]
[ Version ( since = "4.2.6" ) ]
public DataModel extract (string select_sql, HashTable<string,Value?>? vars) throws Error

Extracts some data stored in this using a custom SELECT query.

If the select_sql filter involves SQL identifiers (such as table or column names), then the values should have been adapted using sql_identifier_quote.

For more information about SQL identifiers are represented in this, see the meta data section about SQL identifiers.

Parameters:

this

a MetaStore object

select_sql

a SELECT statement

vars

a hash table with all variables names as keys and GValue* as value, representing values for all the variables mentioned in select_sql. If there is no variable then this part can be omitted.

Returns:

a new DataModel, or null if an error occurred