Implements an ISchemaDiscoverer for SQLite.
Checks if schema exists.
public Boolean ExistsSchema(schema)true if the schema exists, otherwise false.
This method checks if there is a database attached to the connection as the specified schema.
| Name | Type | Summary |
|---|---|---|
| schema | Schema | Schema to check. |
| Type | Summary |
|---|---|
| ValidationException | Thrown when schema is not valid for this operation. |
| ArgumentNullException | Thrown when schema is null. |
| SchemaManipulationException | Thown when there is an error accesing schema data. |
Checks if there is a table named tableName within the optional schema.
public Boolean ExistsTable(schema, tableName)true if the table exists, otherwise false.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the table belongs to (optional). |
| tableName | String | Name of the table. |
| Type | Summary |
|---|---|
| ArgumentNullOrEmptyException | Thrown when tableName is null or empty. |
| SchemaManipulationException | Thown when there is an error accesing schema data. |
Checks whether table exists.
public Boolean ExistsTable(table)true if the table exists, otherwise false.
| 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 data. |
| ArgumentNullOrEmptyException | Thrown when table.Name.Name is null or empty. |
Checks if there is a view named viewName within the optional schema.
public Boolean ExistsView(schema, viewName)true if the view exists, otherwise false.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the view belongs to (optional). |
| viewName | String | Name of the view. |
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
| ArgumentNullOrEmptyException | Thrown when viewName is null or empty. |
Checks whether view exists.
public Boolean ExistsView(view)true if the view exists, otherwise false.
| 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 data. |
| ArgumentNullOrEmptyException | Thrown when view.Name.Name is null or empty. |
Gets a list of catalogs. This method just returns the catalog from the DatabaseApi.
public IList GetCatalogs()A list of catalogs.
Gets a list of schemas.
public IList GetSchemas()A list of schemas.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
Gets the schema definition for the specified table.
public Table GetTable(schema, tableName)A Table with the schema.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the table belongs to (optional). |
| tableName | String | Name of the table. |
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
| TableOrViewNotFoundException | Thrown when the requested table does not exists. |
| ArgumentNullOrEmptyException | Thrown when tableName is null or empty. |
Gets the schema of the specified table.
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 data. |
| TableOrViewNotFoundException | Thrown when the requested table does not exists. |
| ArgumentNullOrEmptyException | Thrown when tableName.Name.Name is null or empty. |
Gets a list of table names.
public IList GetTableNames()A list of table names.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
Get a collections of Tables contained within the database.
public IList GetTables()| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
Gets the schema of the specified view.
public Table GetView(schema, viewName)A table definition.
| Name | Type | Summary |
|---|---|---|
| schema | String | Schema to which the table belongs to (optional). |
| viewName | String | Name of the view. |
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
| TableOrViewNotFoundException | Thrown when the requested table does not exists. |
| ArgumentNullOrEmptyException | Thrown when viewName is null or empty. |
Gets the schema of the specified view.
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 data. |
| ArgumentNullOrEmptyException | Thrown when viewName.Name.Name is null or empty. |
Gets a list of view names.
public IList GetViewNames()A list of view names.
| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |
Get a collections of Tables contained within the database.
public IList GetViews()| Type | Summary |
|---|---|
| SchemaManipulationException | Thown when there is an error accesing schema data. |