public DB_PSQL() { if (SQL_DB != null) SQL_DB = null; SQL_DB = this; init(); }
public DB_PSQL() { if (SQL_DB != null) { SQL_DB = null; } SQL_DB = this; init(); }
//init and connect to db //TODO: Make DB info readable from config file #region Initialization public DB_MAIN() { if (postgres != null) { postgres = null; } postgres = this; gen_dataset(); if (Settings.get_setting("db_type").ToString() == "psql") { DB_PSQL.Start_PSQL(); } else if (Settings.get_setting("db_type").ToString() == "xml") { DB_XML.Start_XML(); } }
public static void Start_PSQL() { SQL_DB = new DB_PSQL(); }