Lines Matching defs:sql

988      * @param sql The raw SQL statement, may contain ? for unknown values to be
993 public SQLiteStatement compileStatement(String sql) throws SQLException {
996 return new SQLiteStatement(this, sql, null);
1162 String sql = SQLiteQueryBuilder.buildQueryString(
1165 return rawQueryWithFactory(cursorFactory, sql, selectionArgs,
1249 * @param sql the SQL query. The SQL string must not be ; terminated
1256 public Cursor rawQuery(String sql, String[] selectionArgs) {
1257 return rawQueryWithFactory(null, sql, selectionArgs, null, null);
1263 * @param sql the SQL query. The SQL string must not be ; terminated
1273 public Cursor rawQuery(String sql, String[] selectionArgs,
1275 return rawQueryWithFactory(null, sql, selectionArgs, null, cancellationSignal);
1282 * @param sql the SQL query. The SQL string must not be ; terminated
1291 CursorFactory cursorFactory, String sql, String[] selectionArgs,
1293 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, editTable, null);
1300 * @param sql the SQL query. The SQL string must not be ; terminated
1312 CursorFactory cursorFactory, String sql, String[] selectionArgs,
1316 SQLiteCursorDriver driver = new SQLiteDirectCursorDriver(this, sql, editTable,
1444 StringBuilder sql = new StringBuilder();
1445 sql.append("INSERT");
1446 sql.append(CONFLICT_VALUES[conflictAlgorithm]);
1447 sql.append(" INTO ");
1448 sql.append(table);
1449 sql.append('(');
1458 sql.append((i > 0) ? "," : "");
1459 sql.append(colName);
1462 sql.append(')');
1463 sql.append(" VALUES (");
1465 sql.append((i > 0) ? ",?" : "?");
1468 sql.append(nullColumnHack + ") VALUES (NULL");
1470 sql.append(')');
1472 SQLiteStatement statement = new SQLiteStatement(this, sql.toString(), bindArgs);
1550 StringBuilder sql = new StringBuilder(120);
1551 sql.append("UPDATE ");
1552 sql.append(CONFLICT_VALUES[conflictAlgorithm]);
1553 sql.append(table);
1554 sql.append(" SET ");
1562 sql.append((i > 0) ? "," : "");
1563 sql.append(colName);
1565 sql.append("=?");
1573 sql.append(" WHERE ");
1574 sql.append(whereClause);
1577 SQLiteStatement statement = new SQLiteStatement(this, sql.toString(), bindArgs);
1603 * @param sql the SQL statement to be executed. Multiple statements separated by semicolons are
1607 public void execSQL(String sql) throws SQLException {
1608 executeSql(sql, null);
1649 * @param sql the SQL statement to be executed. Multiple statements separated by semicolons are
1654 public void execSQL(String sql, Object[] bindArgs) throws SQLException {
1658 executeSql(sql, bindArgs);
1661 private int executeSql(String sql, Object[] bindArgs) throws SQLException {
1664 if (DatabaseUtils.getSqlStatementType(sql) == DatabaseUtils.STATEMENT_ATTACH) {
1677 SQLiteStatement statement = new SQLiteStatement(this, sql, bindArgs);
1692 * @param sql SQL to be validated
1696 * @throws SQLiteException if {@code sql} is invalid
1698 public void validateSql(@NonNull String sql, @Nullable CancellationSignal cancellationSignal) {
1699 getThreadSession().prepare(sql,
1793 * (size of the cache = number of compiled-sql-statements stored in the cache).