![]() |
C Driver API 3.0.0
API for the NuoDB C Driver Library
|
Metadata about a NuoDB database. More...
#include <databaseMetaData.h>
Data Fields | |
_NuoDB_DatabaseMetaData_state_t * | _state |
NuoDB_ResultSet *(* | getColumns )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *tableNamePattern, const char *columnNamePattern) |
Retrieves a description of table columns. | |
const char *(* | getConnectionURL )(NuoDB_DatabaseMetaData *_this) |
Returns the connection URL string. | |
const char *(* | getDatabaseProductName )(NuoDB_DatabaseMetaData *_this) |
Returns the Database Product Name string. | |
const char *(* | getDatabaseProductVersion )(NuoDB_DatabaseMetaData *_this) |
Returns Database Product Version string. | |
const char *(* | getDatabaseVersion )(NuoDB_DatabaseMetaData *_this, unsigned int *majorVersion, unsigned int *minorVersion) |
Returns Database Product Version information. | |
int(* | getDriverMajorVersion )(NuoDB_DatabaseMetaData *_this) |
Returns driver major version number. | |
int(* | getDriverMinorVersion )(NuoDB_DatabaseMetaData *_this) |
Returns driver minor version number. | |
NuoDB_ResultSet *(* | getFunctionColumns )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *functionNamePattern, const char *columnNamePattern) |
Retrieves a description of the database's user function parameters and return type. | |
NuoDB_ResultSet *(* | getFunctions )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *functionNamePattern) |
Retrieves a description of the user functions available. | |
NuoDB_ResultSet *(* | getImportedKeys )(NuoDB_DatabaseMetaData *_this, const char *schema, const char *table) |
Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table). | |
NuoDB_ResultSet *(* | getIndexInfo )(NuoDB_DatabaseMetaData *_this, const char *schema, const char *table, nuodb_bool_t unique) |
Retrieves a description of the given table's indices and statistics. | |
NuoDB_ResultSet *(* | getPrimaryKeys )(NuoDB_DatabaseMetaData *_this, const char *schema, const char *table) |
Retrieves a description of the given table's primary key columns. | |
NuoDB_ResultSet *(* | getProcedureColumns )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *procedureNamePattern, const char *columnNamePattern) |
Retrieves a description of the database's stored procedure parameter and result columns. | |
NuoDB_ResultSet *(* | getProcedures )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *procedureNamePattern) |
Retrieves a description of the stored procedures available in NuoDB. | |
NuoDB_ResultSet *(* | getSchemas )(NuoDB_DatabaseMetaData *_this) |
Retrieves the schema names available in this database. | |
NuoDB_ResultSet *(* | getTables )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *tableNamePattern, int typeCount, const char **types) |
Retrieves a description of the tables available in the database. | |
NuoDB_ResultSet *(* | getTableTypes )(NuoDB_DatabaseMetaData *_this) |
Retrieves the table types available in this database. | |
NuoDB_ResultSet *(* | getTriggers )(NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *tableNamePattern, const char *triggerNamePattern) |
Retrieves a description of the triggers stored in the database. | |
NuoDB_ResultSet *(* | getTypeInfo )(NuoDB_DatabaseMetaData *_this) |
Retrieves a description of all the data types supported NuoDB. | |
nuodb_bool_t(* | supportsTransactionIsolationLevel )(NuoDB_DatabaseMetaData *_this, NuoDB_TransactionIsolationLevel level) |
Checks whether NuoDB supports the given transaction isolation level. | |
Metadata about a NuoDB database.
NuoDB_DatabaseMetaData is used to obtain information about a NuoDB database.
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getColumns) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *tableNamePattern, const char *columnNamePattern) |
Retrieves a description of table columns.
Only column descriptions matching the schema, table and column name criteria are returned. They are ordered by ORDINAL_POSITION.
Each column description has the following columns:
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | tableNamePattern | a table name pattern - must match the table name as it is stored in the database |
[in] | columnNamePattern | a column name pattern - must match the column name as it is stored in the database |
const char *(* NuoDB_DatabaseMetaData::getConnectionURL) (NuoDB_DatabaseMetaData *_this) |
Returns the connection URL string.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
const char *(* NuoDB_DatabaseMetaData::getDatabaseProductName) (NuoDB_DatabaseMetaData *_this) |
Returns the Database Product Name string.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
const char *(* NuoDB_DatabaseMetaData::getDatabaseProductVersion) (NuoDB_DatabaseMetaData *_this) |
Returns Database Product Version string.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
const char *(* NuoDB_DatabaseMetaData::getDatabaseVersion) (NuoDB_DatabaseMetaData *_this, unsigned int *majorVersion, unsigned int *minorVersion) |
Returns Database Product Version information.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[out] | majorVersion | a pointer to a value to be filled in with the database's major version. |
[out] | minorVersion | a pointer to a value to be filled in with the database's minor version. |
int(* NuoDB_DatabaseMetaData::getDriverMajorVersion) (NuoDB_DatabaseMetaData *_this) |
Returns driver major version number.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
int(* NuoDB_DatabaseMetaData::getDriverMinorVersion) (NuoDB_DatabaseMetaData *_this) |
Returns driver minor version number.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getFunctionColumns) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *functionNamePattern, const char *columnNamePattern) |
Retrieves a description of the database's user function parameters and return type.
Only descriptions matching the schema, function and parameter name criteria are returned. The return value, if any, is first. Next are the parameter descriptions in call order. The column descriptions follow in column number order.
Each row in the ResultSet is a parameter description, column description or return type description with the following fields:
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | functionNamePattern | a function name pattern - must match the procedure name as it is stored in the database |
[in] | columnNamePattern | a column name pattern - must match the column name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getFunctions) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *functionNamePattern) |
Retrieves a description of the user functions available.
Only user function descriptions matching the schema and function name criteria are returned. They are ordered by FUNCTION_SCHEM and FUNCTION_NAME.
Each function description has the the following columns:
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | functionNamePattern | a function name pattern - must match the function name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getImportedKeys) (NuoDB_DatabaseMetaData *_this, const char *schema, const char *table) |
Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table).
They are ordered by PKTABLE_SCHEM, PKTABLE_NAME, and KEY_SEQ.
Each imported key column description has the following columns:
[in] | schema | a schema name - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | table | a table name - must match the table name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getIndexInfo) (NuoDB_DatabaseMetaData *_this, const char *schema, const char *table, nuodb_bool_t unique) |
Retrieves a description of the given table's indices and statistics.
They are ordered by NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION.
Each index column description has the following columns:
[in] | schema | a schema name - must match the schema name as it is stored in this database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | table | a table name - must match the table name as it is stored in this database |
[in] | unique | when true, return only indices for unique values; when false, return indices regardless of whether unique or not |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getPrimaryKeys) (NuoDB_DatabaseMetaData *_this, const char *schema, const char *table) |
Retrieves a description of the given table's primary key columns.
They are ordered by KEY_SEQ.
Each primary key column description has the following columns:
[in] | schema | a schema name - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | table | a table name - must match the table name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getProcedureColumns) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *procedureNamePattern, const char *columnNamePattern) |
Retrieves a description of the database's stored procedure parameter and result columns.
Only descriptions matching the schema, procedure and parameter name criteria are returned. The return value, if any, is first. Next are the parameter descriptions in call order. The column descriptions follow in column number order.
Each row in the ResultSet is a parameter description or column description with the following columns:
A user may not have permissions to execute any of the procedures that are returned by getProcedures()
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | procedureNamePattern | a procedure name pattern - must match the procedure name as it is stored in the database |
[in] | columnNamePattern | a column name pattern - must match the column name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getProcedures) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *procedureNamePattern) |
Retrieves a description of the stored procedures available in NuoDB.
Only procedure descriptions matching the schema and procedure name criteria are returned. They are ordered by PROCEDURE_SCHEM and PROCEDURE_NAME.
Each procedure description has the the following columns:
A user may not have permissions to execute any of the procedures that are returned by getProcedures()
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | procedureNamePattern | a procedure name pattern - must match the procedure name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getSchemas) (NuoDB_DatabaseMetaData *_this) |
Retrieves the schema names available in this database.
The schema columns are:
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getTables) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *tableNamePattern, int typeCount, const char **types) |
Retrieves a description of the tables available in the database.
Only table descriptions matching the schema, table name and type criteria are returned. They are ordered by TABLE_TYPE, TABLE_SCHEMA and TABLE_NAME.
Each table description has the following columns:
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | tableNamePattern | a table name pattern - must match the table name as it is stored in the database |
[in] | typeCount | the number of elements in the types list |
[in] | types | a list of table types to include; these types must be from the list of table types returned from getTableTypes(); null returns all types |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getTableTypes) (NuoDB_DatabaseMetaData *_this) |
Retrieves the table types available in this database.
The results are ordered by table type.
The columns include:
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getTriggers) (NuoDB_DatabaseMetaData *_this, const char *schemaPattern, const char *tableNamePattern, const char *triggerNamePattern) |
Retrieves a description of the triggers stored in the database.
Results are ordered by TABLE_SCHEM, TABLE_NAME and TRIGGER_NAME.
Each trigger description has the the following columns:
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | schemaPattern | a schema name pattern - must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search |
[in] | tableNamePattern | a table name pattern - must match the table name as it is stored in the database |
[in] | triggerNamePattern | a trigger name pattern - must match the trigger name as it is stored in the database |
NuoDB_ResultSet *(* NuoDB_DatabaseMetaData::getTypeInfo) (NuoDB_DatabaseMetaData *_this) |
Retrieves a description of all the data types supported NuoDB.
They are ordered by DATA_TYPE and then by how closely the data type maps to the corresponding JDBC SQL type.
Each type description has the following columns:
nuodb_bool_t(* NuoDB_DatabaseMetaData::supportsTransactionIsolationLevel) (NuoDB_DatabaseMetaData *_this, NuoDB_TransactionIsolationLevel level) |
Checks whether NuoDB supports the given transaction isolation level.
This method returns true if the isolation level is supported by the database, and false otherwise. See Supported Transaction Isolation Levels for more information.
[in] | _this | a pointer to the current (this) NuoDB_DatabaseMetaData data structure. |
[in] | level | one of the transaction isolation levels in NuoDB_TransactionIsolationLevel. |