Lines Matching refs:db
28 import com.example.android.common.db.SelectionBuilder;
94 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in query() local
106 Cursor c = builder.query(db, projection, sortOrder); in query()
123 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insert() local
124 assert db != null; in insert()
129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values); in insert()
150 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in delete() local
157 .delete(db); in delete()
164 .delete(db); in delete()
182 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in update() local
189 .update(db, values); in update()
196 .update(db, values); in update()
240 public void onCreate(SQLiteDatabase db) { in onCreate() argument
241 db.execSQL(SQL_CREATE_ENTRIES); in onCreate()
245 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
248 db.execSQL(SQL_DELETE_ENTRIES); in onUpgrade()
249 onCreate(db); in onUpgrade()