Implements an ISchemaDiscoverer for SQLite.
Default constructor
public Void SQLiteSchemaDiscoverer()
Database command builder.
public IDbCmdBuilder CommandBuilder { get; set; }
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. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
Gets a list of catalogs. This method just returns the catalog from the DataAccessAPI.
public IEnumerable<Catalog> GetCatalogs()
A list of catalogs.
Type | Summary |
---|---|
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
Gets a list of schemas.
public IEnumerable<Schema> GetSchemas()
A list of schemas.
Type | Summary |
---|---|
SchemaManipulationException | Thown when there is an error accesing schema data. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when a required property was not properly initialized. |
Gets a list of table names.
public IEnumerable<TableName> GetTableNames()
A list of table names.
Type | Summary |
---|---|
SchemaManipulationException | Thown when there is an error accesing schema data. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
Get a collections of Tables contained within the database.
public IEnumerable<Table> GetTables()
Type | Summary |
---|---|
SchemaManipulationException | Thown when there is an error accesing schema data. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when a required property was not properly initialized. |
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. |
MissingRequiredPropertyException | Thrown when a required property was not properly initialized. |
Gets a list of view names.
public IEnumerable<TableName> GetViewNames()
A list of view names.
Type | Summary |
---|---|
SchemaManipulationException | Thown when there is an error accesing schema data. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |
Get a collections of Tables contained within the database.
public IEnumerable<Table> GetViews()
Type | Summary |
---|---|
SchemaManipulationException | Thown when there is an error accesing schema data. |
MissingRequiredPropertyException | Thrown when the object is not properly initialized. |