private static DataTable executeQuery(string query) { DatabaseSqlite db = DatabaseSqlite.Instance; db.openConnection(); var ret = db.executeQuery(query); db.closeConnection(); return(ret); }
private static int executeNonQuery(string query) { DatabaseSqlite db = DatabaseSqlite.Instance; db.openConnection(); db.beginTransaction(); int ret = db.executeNonQuery(query); db.commit(); db.closeConnection(); return(ret); }