Allows access to MySQL databases using the 'MySQL AB ADO.Net Driver for MySQL' .NET Data Provider.
More...
|
DbConnection | GetConnection (String AServer, String APort, String ADatabaseName, String AUsername, ref String APassword, ref String AConnectionString, StateChangeEventHandler AStateChangeEventHandler) |
| Creates a MySqlConnection connection using the 'MySQL AB ADO.Net Driver for MySQL' .NET Data Provider. More...
|
|
void | InitConnection (DbConnection AConnection) |
| Initialises the connection after it was opened. Doesn't do anything with MySQL! More...
|
|
bool | LogException (Exception AException, ref string AErrorMessage) |
| Formats an error message if the Exception is of Type 'MySqlException'. More...
|
|
String | FormatQueryRDBMSSpecific (String ASqlQuery) |
| Formats a SQL query so that it works for MySQL. See also the comments for TDataBase.FormatQueryRDBMSSpecific. More...
|
|
DbParameter[] | ConvertOdbcParameters (DbParameter[] AParameterArray, ref string ASqlStatement) |
| Converts an Array of DbParameter (eg. OdbcParameter) to an Array of NpgsqlParameter. If the Parameters don't have a name yet, they are given one because MySQL needs named Parameters. More...
|
|
DbCommand | NewCommand (ref string ACommandText, DbConnection AConnection, DbParameter[] AParametersArray, TDBTransaction ATransaction) |
| Creates a DbCommand object. This formats the sql query for MySQL, and transforms the parameters. More...
|
|
DbDataAdapter | NewAdapter () |
| Creates a DbDataAdapter for MySQL. More...
|
|
void | FillAdapter (DbDataAdapter TheAdapter, ref DataSet AFillDataSet, Int32 AStartRecord, Int32 AMaxRecords, string ADataTableName) |
| Fills a DbDataAdapter that was created with the NewAdapter Method. More...
|
|
void | FillAdapter (DbDataAdapter TheAdapter, ref DataTable AFillDataTable, Int32 AStartRecord, Int32 AMaxRecords) |
| Fills a DbDataAdapter that was created with the NewAdapter Method. More...
|
|
bool | AdjustIsolationLevel (ref IsolationLevel AIsolationLevel) |
| Some RDMBS's have some problems with certain Isolation Levels - not so MySQL. More...
|
|
System.Int64 | GetNextSequenceValue (String ASequenceName, TDBTransaction ATransaction, TDataBase ADatabase) |
| Returns the next sequence value for the given Sequence from the DB. More...
|
|
System.Int64 | GetCurrentSequenceValue (String ASequenceName, TDBTransaction ATransaction, TDataBase ADatabase) |
| Returns the current sequence value for the given Sequence from the DB. More...
|
|
void | RestartSequence (String ASequenceName, TDBTransaction ATransaction, TDataBase ADatabase, Int64 ARestartValue) |
| Restart a sequence with the given value. More...
|
|
void | UpdateDatabase (TFileVersionInfo ADBVersion, TFileVersionInfo AExeVersion, string AHostOrFile, string ADatabasePort, string ADatabaseName, string AUsername, string APassword) |
| Updating of a MySQL database has not been implemented yet, need to do this still manually. More...
|
|
void | ClearAllConnectionPools () |
| Clearing of all Connection Pools is not yet implemented for MySQL...! More...
|
|
void | ClearConnectionPool (DbConnection ADBConnection) |
| Clearing of a Connection Pool is not yet implemented for MySQL...! More...
|
|
Allows access to MySQL databases using the 'MySQL AB ADO.Net Driver for MySQL' .NET Data Provider.
DbParameter[] Ict.Common.DB.TMySQL.ConvertOdbcParameters |
( |
DbParameter[] |
AParameterArray, |
|
|
ref string |
ASqlStatement |
|
) |
| |
|
inline |
Converts an Array of DbParameter (eg. OdbcParameter) to an Array of NpgsqlParameter. If the Parameters don't have a name yet, they are given one because MySQL needs named Parameters.
Furthermore, the parameter placeholders '?' in the the passed in ASqlStatement are replaced with MySQL '?paramX' placeholders (where 'paramX' is the name of the Parameter).
- Parameters
-
AParameterArray | Array of DbParameter that is to be converted. |
ASqlStatement | SQL Statement. It will be converted! |
- Returns
- Array of MysqlParameter (converted from AParameterArray .
Implements Ict.Common.DB.IDataBaseRDBMS.