Example #1
0
        public DB_PSQL()
        {
            if (SQL_DB != null)
                SQL_DB = null;

            SQL_DB = this;

            init();
        }
Example #2
0
        public DB_PSQL()
        {
            if (SQL_DB != null)
            {
                SQL_DB = null;
            }

            SQL_DB = this;

            init();
        }
Example #3
0
        //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();
            }
        }
Example #4
0
 public static void Start_PSQL()
 {
     SQL_DB = new DB_PSQL();
 }
Example #5
0
 public static void Start_PSQL()
 {
     SQL_DB = new DB_PSQL();
 }