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); } }
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); } }