Class JetProcessor
Inherited Members
Namespace: FluentMigrator .Runner.Processors.Jet
Assembly: FluentMigrator.Runner.Jet.dll
Syntax
public class JetProcessor : ProcessorBase, IMigrationProcessor, IQuerySchema, IDisposable
Constructors
| Edit this page View SourceJetProcessor(JetGenerator, ILogger<JetProcessor>, IOptionsSnapshot<ProcessorOptions>, IConnectionStringAccessor)
Declaration
public JetProcessor(JetGenerator generator, ILogger<JetProcessor> logger, IOptionsSnapshot<ProcessorOptions> options, IConnectionStringAccessor connectionStringAccessor)
Parameters
Type | Name | Description |
---|---|---|
Jet |
generator | |
ILogger<Jet |
logger | |
IOptions |
options | |
IConnection |
connectionStringAccessor |
JetProcessor(IDbConnection, IMigrationGenerator, IAnnouncer, IMigrationProcessorOptions)
Declaration
[Obsolete]
public JetProcessor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
Parameters
Type | Name | Description |
---|---|---|
IDb |
connection | |
IMigration |
generator | |
IAnnouncer | announcer | |
IMigration |
options |
Properties
| Edit this page View SourceConnection
Declaration
public OleDbConnection Connection { get; }
Property Value
Type | Description |
---|---|
Ole |
ConnectionString
Gets the connection string
Declaration
[Obsolete]
public override string ConnectionString { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceDatabaseType
Gets the database type
Declaration
public override string DatabaseType { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceDatabaseTypeAliases
Gets the database type aliases
Declaration
public override IList<string> DatabaseTypeAliases { get; }
Property Value
Overrides
| Edit this page View SourceTransaction
Declaration
public OleDbTransaction Transaction { get; }
Property Value
Type | Description |
---|---|
Ole |
Methods
| Edit this page View SourceBeginTransaction()
Begins a transaction
Declaration
public override void BeginTransaction()
Overrides
| Edit this page View SourceColumnExists(string, string, string)
Tests if a column exists
Declaration
public override bool ColumnExists(string schemaName, string tableName, string columnName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | The schema name |
string | tableName | The table name |
string | columnName | The column name |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceCommitTransaction()
Commits a transaction
Declaration
public override void CommitTransaction()
Overrides
| Edit this page View SourceConstraintExists(string, string, string)
Tests if a constraint exists
Declaration
public override bool ConstraintExists(string schemaName, string tableName, string constraintName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | The schema name |
string | tableName | The table name |
string | constraintName | The constraint name |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceDefaultValueExists(string, string, string, object)
Tests if a default value for a column exists
Declaration
public override bool DefaultValueExists(string schemaName, string tableName, string columnName, object defaultValue)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | The schema name |
string | tableName | The table name |
string | columnName | The column name |
object | defaultValue | The default value |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceDispose(bool)
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
bool | isDisposing |
Overrides
| Edit this page View SourceEnsureConnectionIsClosed()
Declaration
protected void EnsureConnectionIsClosed()
EnsureConnectionIsOpen()
Declaration
protected void EnsureConnectionIsOpen()
Execute(string, params object[])
Execute an SQL statement
Declaration
public override void Execute(string template, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | template | The SQL statement |
object[] | args | The arguments to replace in the SQL statement |
Overrides
| Edit this page View SourceExists(string, params object[])
Returns true
if data could be found for the given SQL query
Declaration
public override bool Exists(string template, params object[] args)
Parameters
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceIndexExists(string, string, string)
Tests if an index exists
Declaration
public override bool IndexExists(string schemaName, string tableName, string indexName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | The schema name |
string | tableName | The table name |
string | indexName | The index name |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceProcess(PerformDBOperationExpression)
Executes a DB operation
Declaration
public override void Process(PerformDBOperationExpression expression)
Parameters
Type | Name | Description |
---|---|---|
Perform |
expression | The expression to execute |
Overrides
| Edit this page View SourceProcess(string)
Declaration
protected override void Process(string sql)
Parameters
Type | Name | Description |
---|---|---|
string | sql |
Overrides
| Edit this page View SourceRead(string, params object[])
Executes and returns the result of an SQL query
Declaration
public override DataSet Read(string template, params object[] args)
Parameters
Returns
Type | Description |
---|---|
Data |
The data from the specified SQL query |
Overrides
| Edit this page View SourceReadTableData(string, string)
Reads all data from all rows from a table
Declaration
public override DataSet ReadTableData(string schemaName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
string | schemaName | The schema name of the table |
string | tableName | The table name |
Returns
Type | Description |
---|---|
Data |
The data from the specified table |
Overrides
| Edit this page View SourceRollbackTransaction()
Rollback of a transaction
Declaration
public override void RollbackTransaction()
Overrides
| Edit this page View SourceSchemaExists(string)
Tests if the schema exists
Declaration
public override bool SchemaExists(string tableName)
Parameters
Type | Name | Description |
---|---|---|
string | tableName |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceSequenceExists(string, string)
Tests if a sequence exists
Declaration
public override bool SequenceExists(string schemaName, string sequenceName)
Parameters
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceTableExists(string, string)
Tests if the table exists
Declaration
public override bool TableExists(string schemaName, string tableName)
Parameters
Returns
Type | Description |
---|---|
bool |
|