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); }
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); }
public void TestActiveDirectoryConnectionPostgresql() { var svr = TestPostgreSQL.GetPGServer(); }