Implements basic functionality for ISchemaDiscoverers.
Gets or sets the command builder service.
public IDbCmdBuilder CommandBuilder { get; set; }Checks whether a schema exists.
public Boolean ExistsSchema(schema)true if the schema exists.
| Name | Type | Summary |
|---|---|---|
| schema | Schema | Schema to check. |
Checks whether a table exists.
public Boolean ExistsTable(schema, tableName)true if the table exists.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the table belongs to. |
| tableName | String | Name of the table to check. |
Checks whether a table exists.
public Boolean ExistsTable(table)true if the table exists.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to check. |
Checks whether a view exists.
public Boolean ExistsView(schema, viewName)true if the view exists.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the view belongs to. |
| viewName | String | Name of the view to check. |
Checks whether a view exists.
public Boolean ExistsView(view)true if the view exists.
| Name | Type | Summary |
|---|---|---|
| view | Table | View to check. |
Gets a list of user created catalogs.
public IList GetCatalogs()A list of user catalogs.
Gets a list of user created schemas.
public IList GetSchemas()A list of schemas.
Gets a table schema from the database;
public Table GetTable(schema, tableName)A table definition.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema that the table belongs to. |
| tableName | String | The name of the table. |
Gets a table schema from the database.
public Table GetTable(tableName)A table definition.
| Name | Type | Summary |
|---|---|---|
| tableName | TableName | Name of the table. |
Gets a list of table names from the database.
public IList GetTableNames()A list of table names.
Gets a list of all tables from the database.
public IList GetTables()A collection of tables.
Gets a view schema from the database.
public Table GetView(schema, viewName)A definition for the specified view.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the view belongs to. |
| viewName | String | Name of the view. |
Gets a view schema from the database.
public Table GetView(viewName)A definition for the specified view.
| Name | Type | Summary |
|---|---|---|
| viewName | TableName | Name of the view. |
Gets a list of view names from the database.
public IList GetViewNames()A list of view names.
Gets a list of all views from the database.
public IList GetViews()A collection of views.