OdbcConnectionManager
Class OdbcConnectionManager
Generic OdbcConnectionManager - try this connection manager if no particular connection manager for your database exists. E.g. for MySql use the MySqlOdbcConnectionManager. Make sure to set the ConnectionType to fit with your database when creating an instance. If you leave the ConnectionManagerType.Unknown (which is the default), there might be some limitations when you use this ConnectionManager:
- Most ControlFlow Tasks won't work properly, depending on your database
- SqlTask will work
- If you use special characters, you need to set the quotation begin / quotation end properties QB and QE that fit to your database (e.g. "[" and "]" for Sql Server or "`" for MySql)
- DbDestination and DbSource will only work if you provide a TableDefinition that at least define the table and the columns names
Inheritance
Inherited Members
Namespace: ETLBox.Odbc
Assembly: ETLBox.Odbc.dll
Syntax
Constructors
OdbcConnectionManager()
Declaration
OdbcConnectionManager(ConnectionType)
Declaration
Parameters
Type | Name | Description |
---|---|---|
ConnectionType | connectionType |
OdbcConnectionManager(ConnectionType, OdbcConnectionString)
Declaration
Parameters
Type | Name | Description |
---|---|---|
ConnectionType | connectionType | |
OdbcConnectionString | connectionString |
OdbcConnectionManager(ConnectionType, string)
Declaration
Parameters
Type | Name | Description |
---|---|---|
ConnectionType | connectionType | |
string | connectionString |
Properties
ConnectionType
The database type for the connection manager.
Declaration
Property Value
Type | Description |
---|---|
ConnectionType |
Overrides
IsOdbcOrOleDbConnection
Indicates if the current connection manager is used as a OleDb or Odbc Connection.
Declaration
Property Value
Type | Description |
---|---|
bool |
Overrides
QB
The quotation begin character that is used in the database. E.g. SqlServer uses: '[' and Postgres: '"'
Declaration
Property Value
Type | Description |
---|---|
string |
Overrides
QE
The quotation end character that is used in the database. E.g. SqlServer uses: ']' and Postgres: '"'
Declaration
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
BulkDelete(ITableData)
Performs a bulk delete
Declaration
Parameters
Type | Name | Description |
---|---|---|
ITableData | data | Batch of data |
Overrides
BulkInsert(ITableData)
Performs a bulk insert
Declaration
Parameters
Type | Name | Description |
---|---|---|
ITableData | data | Batch of data |
Overrides
BulkSelect(ITableData, ICollection<string>, Action, Action, params Action<object>[])
Performs a bulk select
Declaration
Parameters
Type | Name | Description |
---|---|---|
ITableData | data | Batch of data needed for the where condition |
ICollection<string> | selectColumnNames | Column names included in the select |
Action | beforeRowReadAction | Action invoked before any data is read |
Action | afterRowReadAction | Action invoked after all data is read |
Action<object>[] | rowActions |
Overrides
BulkUpdate(ITableData, ICollection<string>, ICollection<string>)
Performs a bulk update
Declaration
Parameters
Type | Name | Description |
---|---|---|
ITableData | data | Batch of data |
ICollection<string> | setColumnNames | The column names used in the set part of the update statement |
ICollection<string> | joinColumnNames | The column names to join for the update |
Overrides
CleanUpBulkInsert(string)
Called after the whole bulk insert operation to change back settings made to improve bulk insert performance
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | tablename |
Overrides
Clone()
Cretes a clone of the current connection manager
Declaration
Returns
Type | Description |
---|---|
IConnectionManager | A instance copy of the current connection manager |
Overrides
PrepareBulkInsert(string)
Performs preparations needed to improved performance of a bulk insert operation
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | tablename |