예제 #1
0
 public Cursor execQuery(SqlInfo sqlInfo) throws DbException {
   debugSql(sqlInfo.getSql());
   try {
     return database.rawQuery(sqlInfo.getSql(), sqlInfo.getBindArgsAsStrArray());
   } catch (Throwable e) {
     throw new DbException(e);
   }
 }
예제 #2
0
 public void execNonQuery(SqlInfo sqlInfo) throws DbException {
   debugSql(sqlInfo.getSql());
   try {
     if (sqlInfo.getBindArgs() != null) {
       database.execSQL(sqlInfo.getSql(), sqlInfo.getBindArgsAsArray());
     } else {
       database.execSQL(sqlInfo.getSql());
     }
   } catch (Throwable e) {
     throw new DbException(e);
   }
 }