Class bpxCatalog
- Namespace
- PolarDataInterop.Catalog
- Assembly
- PolarDataInterop.dll
The catalog contains information about the tables and views in a database.
public class bpxCatalog
- Inheritance
-
bpxCatalog
- Inherited Members
- Extension Methods
Properties
Catalogs
Returns a collection of strings with the names of all catalogs on this server.
public Collection<string> Catalogs { get; }
Property Value
Connection
Gets the connection used to communicate with the database.
public PolarConnection Connection { get; }
Property Value
Schemas
Returns a collection of strings for the schemas found in this catalog.
public Collection<string> Schemas { get; }
Property Value
SelectedCatalog
Gets/sets the current catalog to use.
public string SelectedCatalog { get; set; }
Property Value
SelectedSchema
Gets/sets the schema to use for this catalog.
public string SelectedSchema { get; set; }
Property Value
Tables
Returns a collection of all tables in the selected catalog/schema.
public Collection<bpxTable> Tables { get; }
Property Value
Methods
CreateDatabaseSQL(bool)
This method creates the SQL statements to create a database based on the current database.
public string CreateDatabaseSQL(bool pCreateData = true)
Parameters
pCreateData
boolIf this parameter is set to true (default), also insert-statements are created to insert all data.
Returns
- string
A SQL script with all sql commands to create this database.
GetField(string, string)
Gets a field from the catalog.
public bpxField GetField(string pTableNameExpression, string pFieldName)
Parameters
pTableNameExpression
stringAn expression identifying the table, like: CatalogName.SchemaName.TableName SchemaName.TableName TableName
pFieldName
stringThe name of the field to get.
Returns
- bpxField
The specified field in the specified table (or Nothing if not found).
GetTable(string)
Gets a table from the catalog.
public bpxTable GetTable(string pTableNameExpression)
Parameters
pTableNameExpression
stringAn expression identifying the table, like: CatalogName.SchemaName.TableName SchemaName.TableName TableName
Returns
- bpxTable
The table (or nothing if not found)
GetTableForQuery(string)
Returns a catalog-table object for the specified query.
public bpxTable GetTableForQuery(string pQuery)
Parameters
pQuery
stringThe query to create a catalog-table for.
Returns
- bpxTable
The catalog table for the query.
ToString()
public override string ToString()