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