Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }