#include <database-metadata.h>
Public Types | |
enum | ImportedKeyUpdateRule { ImportedKeyNoAction, ImportedKeySetDefault, ImportedKeySetNull, ImportedKeyCascade, ImportedKeyRestrict } |
enum | ImportedKeyDeferrability { ImportedKeyInitiallyDeferred, ImportedKeyInitiallyImmediate, ImportedKeyNotDeferrable } |
enum | ColumnNullability { ColumnNoNulls, ColumnNullable, ColumnNullableUnknown } |
enum | TableIndexType { TableIndexStatistic, TableIndexClustered, TableIndexHashed, TableIndexOther } |
Public Member Functions | |
virtual ResultSet * | get_tables (const std::string &catalog, const std::string &schema, const std::string &table_name_pattern, const std::vector< std::string > &types)=0 |
Get information about tables. | |
virtual ResultSet * | get_columns (const std::string &catalog, const std::string &schema, const std::string &table_name_pattern, const std::string &column_name_pattern)=0 |
virtual ResultSet * | get_primary_keys (const std::string &catalog, const std::string &schema, const std::string &table)=0 |
Get a description of a table's primary key columns. | |
virtual ResultSet * | get_cross_reference (const std::string &primary_catalog, const std::string &primary_schema, const std::string &primary_table, const std::string &foreign_catalog, const std::string &foreign_schema, const std::string &foreign_table)=0 |
Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key columns of the given primary key table (describe how one table imports another's key). | |
virtual ResultSet * | get_imported_keys (const std::string &catalog, const std::string &schema, const std::string &table)=0 |
virtual ResultSet * | get_exported_keys (const std::string &catalog, const std::string &schema, const std::string &table)=0 |
virtual ResultSet * | get_index_info (const std::string &catalog, const std::string &schema, const std::string &table, bool unique, bool approximate)=0 |
Get a description of a table's indices and statistics. |
This class provides information about the structure and capabilities of a database.
|
|
|
|
|
|
|
|
|
|
|
Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key columns of the given primary key table (describe how one table imports another's key).
|
|
|
|
|
|
Get a description of a 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:
|
|
Get a description of a table's primary key columns. They are ordered by COLUMN_NAME. Each column description has the following columns:
|
|
Get information about tables. Retrieves a description of the tables available in the catalog. Only table descriptions matching catalog, schema, table_name_pattern and one of types are returned. They are ordered by type, schema and name. The table descriptions have the following columns:
|