diff options
author | Ben Motmans <bmotmans@mono-cvs.ximian.com> | 2008-01-28 18:40:27 +0300 |
---|---|---|
committer | Ben Motmans <bmotmans@mono-cvs.ximian.com> | 2008-01-28 18:40:27 +0300 |
commit | e94da6b66e519a57fd531c04a63e94b3cb07e1ec (patch) | |
tree | 1518d076319a7b0201e18198a9f6864439fa2c3a /extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs | |
parent | c8e8278af10cd38ecd0c03f6a4976e92b3e07f1e (diff) |
* MySqlDialect.cs, MySqlConnectionProvider.cs, MySqlSchemaProvider.cs,
MySqlDbFactory.cs, MySqlGuiProvider.cs: small API related changes
* MySqlPooledDbConnection.cs: database version support
* Widgets/MySqlColumnEditorWidget.cs,
Widgets/MySqlCreateDatabaseWidget.cs: placeholders for future
implementations
svn path=/trunk/monodevelop/; revision=94140
Diffstat (limited to 'extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs')
-rw-r--r-- | extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs b/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs index e2dd5d0838..99f7e9cd49 100644 --- a/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs +++ b/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs @@ -30,23 +30,23 @@ using MonoDevelop.Core; using MonoDevelop.Core.Gui; using MonoDevelop.Database.Components;
-namespace MonoDevelop.Database.Sql
+namespace MonoDevelop.Database.Sql.MySql
{
- public class MySqlDbFactory : AbstractDbFactory
+ public class MySqlDbFactory : IDbFactory
{ private ISqlDialect dialect; private IConnectionProvider connectionProvider; private IGuiProvider guiProvider; - public override string Identifier { + public string Identifier { get { return "MySql.Data.MySqlClient"; } } - public override string Name { - get { return "MySql database"; } + public string Name { + get { return AddinCatalog.GetString ("MySql database"); } } - public override ISqlDialect Dialect { + public ISqlDialect Dialect { get { if (dialect == null) dialect = new MySqlDialect (); @@ -54,7 +54,7 @@ namespace MonoDevelop.Database.Sql } } - public override IConnectionProvider ConnectionProvider { + public IConnectionProvider ConnectionProvider { get { if (connectionProvider == null) connectionProvider = new MySqlConnectionProvider (); @@ -62,7 +62,7 @@ namespace MonoDevelop.Database.Sql } } - public override IGuiProvider GuiProvider { + public IGuiProvider GuiProvider { get { if (guiProvider == null) guiProvider = new MySqlGuiProvider (); @@ -70,17 +70,17 @@ namespace MonoDevelop.Database.Sql } } - public override IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) + public IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) { return new DefaultConnectionPool (this, ConnectionProvider, context); } - public override ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool) + public ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool) { return new MySqlSchemaProvider (connectionPool); } - public override DatabaseConnectionSettings GetDefaultConnectionSettings () + public DatabaseConnectionSettings GetDefaultConnectionSettings () { DatabaseConnectionSettings settings = new DatabaseConnectionSettings (); settings.ProviderIdentifier = Identifier; |