public void TestPostgresql()
        {
            // using database nunit owned by user running the test
            Logger.EnableLogger();
            var svr    = TestPostgreSQL.GetPGServer() as PostgreSQL;
            var tables = svr.TableNames();

            foreach (var tn in tables)
            {
                svr.RunSqlCommand("drop table \"" + tn + "\"");
                Console.WriteLine(tn);
            }
            TimeSeriesDatabase db = new TimeSeriesDatabase(svr, false);

            BasicDatabaseTest(db);
        }
示例#2
0
        public void TestPostgresql()
        {
            //string str = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
            // using database nunit owned by user running the test
            Logger.EnableLogger();
            var svr = TestPostgreSQL.GetPGServer(dbName: "postgres") as PostgreSQL;

            if (!svr.DatabaseExists("nunit"))
            {
                svr.RunSqlCommand("create database nunit");
            }
            svr = TestPostgreSQL.GetPGServer(dbName: "nunit") as PostgreSQL;

            var tables = svr.TableNames();

            foreach (var tn in tables)
            {
                svr.RunSqlCommand("drop table \"" + tn + "\"");
                Console.WriteLine(tn);
            }
            TimeSeriesDatabase db = new TimeSeriesDatabase(svr, false);

            BasicDatabaseTest(db);
        }
示例#3
0
 public void TestActiveDirectoryConnectionPostgresql()
 {
     var svr = TestPostgreSQL.GetPGServer();
 }