Implements a ISchemaDiscoverer for Microsoft SQL Server.
Checks whether a schema exists within the catalog configured on the DatabaseApi.
public Boolean ExistsSchema(schema)true if the schema exists.
| Name | Type | Summary |
|---|---|---|
| schema | Schema | Schema to check. |
| Type | Summary |
|---|---|
| ValidationException | Thrown when the schema configuration is not valid for checking existence. |
| ArgumentNullException | Thrown when schema is null. |
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Checks whether a table exists within the catalog configured on the DatabaseApi.
public Boolean ExistsTable(schema, tableName)true is the table exists.
| Name | Type | Summary |
|---|---|---|
| schema | String | The schema to which the table belongs to. |
| tableName | String | The name of the table to check. |
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
| ArgumentNullOrEmptyException | Thrown when schema is null or empty. |
| ArgumentNullOrEmptyException | Thrown when tableName is null or empty. |
Checks whether a table exists within the catalog configured on the DatabaseApi.
public Boolean ExistsTable(table)true if the table exists.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to check. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when table is null. |
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Checks whether a view exists within the catalog configured on the DatabaseApi.
public Boolean ExistsView(schema, viewName)true is the view exists.
| Name | Type | Summary |
|---|---|---|
| schema | String | The schema to which the view belongs to. |
| viewName | String | The name of the view to check. |
| Type | Summary |
|---|---|
| ArgumentNullOrEmptyException | Thrown when schema is null or empty. |
| ArgumentNullOrEmptyException | Thrown when viewName is null or empty. |
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Checks whether a view exists within the catalog configured on the DatabaseApi.
public Boolean ExistsView(view)true if the view exists.
| Name | Type | Summary |
|---|---|---|
| view | Table | View to check. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when view is null. |
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Get a list of user created catalogs.
public IList GetCatalogs()A list of user catalogs.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Gets a list of user created schemas from the catalog configured on the DatabaseApi.
public IList GetSchemas()A list of user schemas.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Gets the schema of a table from the catalog configured on the DatabaseApi.
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. |
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
| TableOrViewNotFoundException | Thrown when the specified table does not exists. |
| ArgumentNullOrEmptyException | Thrown when schema or tableName are null or empty. |
Gets the schema of a table from the catalog configured on the DatabaseApi.
public Table GetTable(tableName)A table definition.
| Name | Type | Summary |
|---|---|---|
| tableName | TableName | Name of the table. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when tableName is null. |
| SchemaManipulationException | Thown when there is an error accesing schema information. |
| TableOrViewNotFoundException | Thrown when the specified table does not exists. |
Gets a list of table names from the catalog configured on the DatabaseApi.
public IList GetTableNames()A list of table names.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Gets a list of all tables from the catalog configured on the DatabaseApi.
public IList GetTables()A collection of tables.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Gets the schema of a view from the catalog configured on the DatabaseApi.
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. |
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
| TableOrViewNotFoundException | Thrown when the specified view does not exists. |
| ArgumentNullOrEmptyException | Thrown when schema or viewName are null or empty. |
Gets the schema of a view from the catalog configured on the DatabaseApi.
public Table GetView(viewName)A definition for the specified view.
| Name | Type | Summary |
|---|---|---|
| viewName | TableName | Name of the view. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when viewName is null. |
| SchemaManipulationException | Thown when there is an error accesing schema information. |
| TableOrViewNotFoundException | Thrown when the specified view does not exists. |
| ArgumentNullOrEmptyException | Thrown when viewName.Schema.Schema or viewName.Name.Name are null or empty. |
Gets a list of view names from the catalog configured on the DatabaseApi.
public IList GetViewNames()A list of view names.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
Gets a list of all views from the catalog configured on the DatabaseApi.
public IList GetViews()A collection of views.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema information. |
| MissingRequiredPropertyException | Thrown when a required property was not properly initialized. |