예제 #1
0
        protected MySQLDatabase(MySQLStorageEngine engine)
        {
            StorageEngine = engine;

            Name        = String.Format("MySQL ({0})", StorageEngine);
            Category    = "SQL";
            Description = "MySQL + .NET Connector";
            Website     = "http://www.mysql.com/";
            Color       = System.Drawing.Color.FromArgb(215, 233, 247);

            Requirements = new string[]
            {
                "MySql.Data.dll"
            };

            MySqlConnectionStringBuilder cb = new MySqlConnectionStringBuilder();

            cb.ConnectionLifeTime    = 0;
            cb.DefaultCommandTimeout = 0;
            cb.Server   = "localhost";
            cb.UserID   = "root";
            cb.Password = "";
            cb.Database = "test";

            CollectionName   = "table1";
            ConnectionString = cb.ConnectionString;

            InsertsPerQuery = 1000;
        }
        protected MySQLDatabase(MySQLStorageEngine engine)
        {
            StorageEngine = engine;

            Name = String.Format("MySQL ({0})", StorageEngine);
            Category = "SQL";
            Description = "MySQL + .NET Connector";
            Website = "http://www.mysql.com/";
            Color = System.Drawing.Color.FromArgb(215, 233, 247);

            Requirements = new string[]
            {
                "MySql.Data.dll"
            };

            MySqlConnectionStringBuilder cb = new MySqlConnectionStringBuilder();
            cb.ConnectionLifeTime = 0;
            cb.DefaultCommandTimeout = 0;
            cb.Server = "localhost";
            cb.UserID = "root";
            cb.Password = "";
            cb.Database = "test";

            CollectionName = "table1";
            ConnectionString = cb.ConnectionString;

            InsertsPerQuery = 10000;
        }