}//O(1) public DBhandler(string host, string username, string password, string DB) //connection to other postgresql { this.con = new NpgsqlConnection(String.Format("Server={0};Username={1};Database={2};Password={3};SSLMode=Prefer", host, username, DB, password)); this.con.Open(); this.sort = new Sorts(); }//O(1)
//constructors: public DBhandler() { this.con = new NpgsqlConnection("secret"); this.con.Open(); this.sort = new Sorts(); }//O(1)