Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 33) sorted by relevance

12

/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/
Ddatastore.py19 from google.appengine.ext import db
22 class Contact(db.Model):
25 handle = db.StringProperty(required=True)
26 firstname = db.StringProperty()
27 lastname = db.StringProperty()
28 phone_home = db.PhoneNumberProperty()
29 phone_office = db.PhoneNumberProperty()
30 phone_mobile = db.PhoneNumberProperty()
31 email = db.EmailProperty()
32 status = db.TextProperty()
[all …]
/development/tools/repo_diff/service/repodiff/persistence/sql/
Dsql.go16 var db *sql.DB var
40 if db != nil {
41 return db, nil
47 if db != nil {
48 return db, nil
51 db, err = newDBConnectionPool()
58 db.SetMaxOpenConns(connections)
61 db.SetMaxIdleConns(connections)
62 return db, nil
65 func SingleTransactionInsert(db *sql.DB, insertQuery string, rowsOfCols [][]interface{}) error {
[all …]
Dsql_test.go10 db, err := GetDBConnectionPool()
12 err = db.Ping()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/
DLocationDbHelper.java17 package com.example.android.wearable.speedtracker.db;
69 public void onCreate(SQLiteDatabase db) { in onCreate() argument
70 db.execSQL(SQL_CREATE_ENTRIES); in onCreate()
74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
75 db.execSQL(SQL_DELETE_ENTRIES); in onUpgrade()
76 onCreate(db); in onUpgrade()
88 SQLiteDatabase db = getWritableDatabase(); in insert() local
98 return db.insert(TABLE_NAME, "null", values); in insert()
107 SQLiteDatabase db = getReadableDatabase(); in read() local
119 Cursor cursor = db.query( in read()
[all …]
/development/tools/repo_diff/service/repodiff/repositories/
Ddenormalizer.go15 db *sql.DB member
19 db *sql.DB member
26 if _, err := g.db.Exec(
34 _, err := g.db.Exec(
93 if _, err := g.db.Exec(
101 _, err := g.db.Exec(
163 s.db,
195 db, err := repoSQL.GetDBConnectionPool()
197 db: db,
202 db, err := repoSQL.GetDBConnectionPool()
[all …]
Dproject.go17 db *sql.DB member
25 p.db,
54 err := p.db.QueryRow(
89 p.db,
135 db, err := repoSQL.GetDBConnectionPool()
137 db: db,
Dcommit.go33 db *sql.DB member
40 db: c.db,
49 c.db,
74 err := c.db.QueryRow(
109 c.db,
162 c.db,
201 db, err := repoSQL.GetDBConnectionPool()
203 db: db,
Dsource.go19 db *sql.DB member
47 s.db,
64 s.db,
96 s.db,
128 db, err := repoSQL.GetDBConnectionPool()
130 db: db,
Dproject_test.go25 db, _ := repoSQL.GetDBConnectionPool()
27 db.QueryRow("SELECT COUNT(*) FROM project_differential").Scan(&count)
32 db, _ := repoSQL.GetDBConnectionPool()
33 db.Exec("TRUNCATE TABLE project_differential")
Dhelpers_test.go53 db, _ := repoSQL.GetDBConnectionPool()
54 db.Exec(
Dsource_test.go23 db, _ := repoSQL.GetDBConnectionPool()
24 db.Exec("TRUNCATE TABLE id_to_url_branch")
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
DFeedProvider.java28 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
[all …]
/development/samples/training/threadsample/src/com/example/android/threadsample/
DDataProvider.java154 private void dropTables(SQLiteDatabase db) { in dropTables() argument
157 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.PICTUREURL_TABLE_NAME); in dropTables()
158 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.DATE_TABLE_NAME); in dropTables()
169 public void onCreate(SQLiteDatabase db) { in onCreate() argument
171 db.execSQL(CREATE_PICTUREURL_TABLE_SQL); in onCreate()
172 db.execSQL(CREATE_DATE_TABLE_SQL); in onCreate()
185 public void onUpgrade(SQLiteDatabase db, int version1, int version2) { in onUpgrade() argument
191 dropTables(db); in onUpgrade()
194 onCreate(db); in onUpgrade()
204 public void onDowngrade(SQLiteDatabase db, int version1, int version2) { in onDowngrade() argument
[all …]
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/db/
DSelectionBuilder.java23 package com.example.android.common.db;
296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) { in query() argument
297 return query(db, columns, null, null, orderBy, null); in query()
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy, in query() argument
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
339 public int update(SQLiteDatabase db, ContentValues values) { in update() argument
342 return db.update(mTable, values, getSelection(), getSelectionArgs()); in update()
351 public int delete(SQLiteDatabase db) { in delete() argument
354 return db.delete(mTable, getSelection(), getSelectionArgs()); in delete()
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Ddashboard.py26 from google.appengine.ext import db
29 from google.appengine.ext.db import djangoforms
103 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
109 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
126 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
143 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
154 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
157 contact.avatar = db.Blob(avatar)
171 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
/development/samples/NotePad/src/com/example/android/notepad/
DNotePadProvider.java167 public void onCreate(SQLiteDatabase db) { in onCreate() argument
168 db.execSQL("CREATE TABLE " + NotePad.Notes.TABLE_NAME + " (" in onCreate()
185 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
192 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade()
195 onCreate(db); in onUpgrade()
271 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
279 db, // The database to query in query()
511 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
514 long rowId = db.insert( in insert()
553 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLoaderThrottle.java135 public void onCreate(SQLiteDatabase db) { in onCreate() argument
136 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " (" in onCreate()
150 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
157 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade()
160 onCreate(db); in onUpgrade()
241 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
243 Cursor c = qb.query(db, projection, selection, selectionArgs, in query()
287 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
289 long rowId = db.insert(MainTable.TABLE_NAME, null, values); in insert()
306 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
[all …]
/development/scripts/
Dadd-accounts-sdk78 db = DbExists(adb_flags)
79 if db is None:
84 if db:
Dadd-accounts81 db = DbExists(adb_flags)
82 if db is None:
87 if db:
/development/tools/checkcolor/
D.gitignore18 # Windows thumbnail db
19 Thumbs.db
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryDatabase.java181 public void onCreate(SQLiteDatabase db) { in onCreate() argument
182 mDatabase = db; in onCreate()
237 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
240 db.execSQL("DROP TABLE IF EXISTS " + FTS_VIRTUAL_TABLE); in onUpgrade()
241 onCreate(db); in onUpgrade()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DRssContentProvider.java72 public void onCreate(SQLiteDatabase db){ in onCreate() argument
82 db.execSQL(sql); in onCreate()
90 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){ in onUpgrade() argument
94 db.execSQL("DROP TABLE IF EXISTS " + DATABASE_TABLE_NAME + ";"); in onUpgrade()
/development/
D.gitignore5 Thumbs.db
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
DPhoneApplication.java21 import com.example.android.wearable.speedtracker.db.LocationDbHelper;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorMatrixSample.java47 float db, float da) { in setTranslate() argument
51 0, 0, 2, 0, db, in setTranslate()

12