29 using System.Collections.Generic;
31 using System.Data.Common;
33 using System.Reflection;
34 using System.Text.RegularExpressions;
36 using MySql.Data.MySqlClient;
38 namespace OpenSim.Data.MySQL
51 public MySqlMigration(DbConnection conn, Assembly assem,
string subtype,
string type) :
52 base(conn, assem, subtype, type)
57 base(conn, assem, type)
61 protected override void ExecuteScript(DbConnection conn,
string[] script)
63 if (!(conn is MySqlConnection))
65 base.ExecuteScript(conn, script);
69 MySqlScript scr =
new MySqlScript((MySqlConnection)conn);
71 foreach (
string sql
in script)
74 scr.Error += delegate(
object sender, MySqlScriptErrorEventArgs args)
76 throw new Exception(sql);
MySqlMigration(DbConnection conn, Assembly assem, string type)
This is a MySQL-customized migration processor. The only difference is in how it executes SQL scripts...
override void ExecuteScript(DbConnection conn, string[] script)
Executes a script, possibly in a database-specific way. It can be redefined for a specific DBMS...
MySqlMigration(DbConnection conn, Assembly assem, string subtype, string type)