Implements an ISchemaProvisioner for SQLite.
Adds a column to a table.
public Void AddColumn(table, column)| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be altered. |
| column | TableColumn | Column to be added. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when table is null. -or- column is null. |
| ValidationException | Thrown when the configuration is not valid. |
Adds a column constraint.
public Void AddColumnConstraint(table, column, constraint)SQLite does not support column constraints so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be alter. |
| column | TableColumn | Column to be alter. |
| constraint | ColumnConstraint | Contraint to be added. |
Adds a foreign key to table.
public Void AddForeignKey(table, foreignKey)SQLite does not support foreign keys so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be alter. |
| foreignKey | ForeignKey | Foreign key to be added. |
Modifies a table column.
public Void AlterColumn(table, from, to)SQLite does not support column modification so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be alter. |
| from | TableColumn | The actual configuration of the column. |
| to | TableColumn | The desired configuration of the column. |
Creates an index.
public Void CreateIndex(table, index)| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be alter. |
| index | Index | Index to be created. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when table is null. -or- index is null. |
| ValidationException | Thrown when the configuration is not valid. |
Creates a primary key for the table.
public Void CreatePrimaryKey(table, primaryKey)SQLite does not support primary keys so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be alter. |
| primaryKey | Index | Primary key to be created. |
Creates a schema.
public Void CreateSchema(name)SQLite does not support schemas so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| name | String | The name of the schema to create. |
Creates a sequence if it does not exists.
public Void CreateSequenceIfNotExists(sequence)SQLite does not support sequences so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| sequence | Sequence | A sequence to be created. |
Creates a table.
public Void CreateTable(table)| Name | Type | Summary |
|---|---|---|
| table | Table | Table to be created. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when table is null. |
| ValidationException | Thrown when the configuration is not valid. |
Creates a view.
public Void CreateView(view)| Name | Type | Summary |
|---|---|---|
| view | View | View to be created. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when view is null. |
| ValidationException | Thrown when the configuration is not valid. |
Drops a column from the table.
public Void DropColumn(table, column)SQLite does not support dropping columns so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to alter. |
| column | TableColumn | Column to be dropped. |
Drops a column constraint.
public Void DropColumnConstraint(table, column, constraint)SQLite does not support column constraints so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to alter. |
| column | TableColumn | Column to alter. |
| constraint | ColumnConstraint | Contraint to be dropped. |
Drops a foreign key.
public Void DropForeignKey(table, foreignKey)SQLite does not support foreign keys so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to alter. |
| foreignKey | ForeignKey | Foreign key to drop. |
Drops an index.
public Void DropIndex(table, index)| Name | Type | Summary |
|---|---|---|
| table | Table | Table to alter. |
| index | Index | Index to drop. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when index is null. |
| ValidationException | Thrown when the configuration is not valid. |
Drops a primary key index.
public Void DropPrimaryKey(table, primaryKey)SQLite does not support primary keys so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| table | Table | Table to alter. |
| primaryKey | Index | Index to drop. |
Drops a table.
public Void DropTable(table)| Name | Type | Summary |
|---|---|---|
| table | Table | Table to drop. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when table is null. |
| ValidationException | Thrown when the configuration is not valid. |
Drops a view.
public Void DropView(view)| Name | Type | Summary |
|---|---|---|
| view | View | View to drop. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when view is null. |
| ValidationException | Thrown when the configuration is not valid. |
Grants permission to a grantee to access a database object.
public Void GrantPermissions(grant)SQLite does not support grants so this method does nothing.
| Name | Type | Summary |
|---|---|---|
| grant | Grant | Grant configuration. |
Renames a table.
public Void RenameTable(tableName, newTableName)| Name | Type | Summary |
|---|---|---|
| tableName | TableName | Name of the table to be renamed. |
| newTableName | String | New table name. |
| Type | Summary |
|---|---|
| ArgumentNullException | Thrown when tableName is null. |
| ArgumentNullOrEmptyException | Thrown when newTableName is null or empty. |
| ValidationException | Thrown when the configuration is not valid. |