public static SqliteDB getInstance(string db_file,string[] sqlstatement) { if(instance == null) { instance = new SqliteDB(db_file, sqlstatement); } return instance; }
private int initSqliteDB(int _init_s) { if (sqldb == null) { //get db file location string db_file_location ="Data Source = "+Application.persistentDataPath+Utils.GLOBAL_DB_FILE_PATH; sqldb = SqliteDB.getInstance (db_file_location, sqlStatement); } _init_s += 1; return _init_s; }