Searched refs:m_db (Results 1 – 10 of 10) sorted by relevance
/external/webkit/Source/WebCore/platform/sql/ |
D | SQLiteTransaction.cpp | 36 : m_db(db) in SQLiteTransaction() 51 ASSERT(!m_db.m_transactionInProgress); in begin() 60 m_inProgress = m_db.executeCommand("BEGIN"); in begin() 62 m_inProgress = m_db.executeCommand("BEGIN IMMEDIATE"); in begin() 63 m_db.m_transactionInProgress = m_inProgress; in begin() 70 ASSERT(m_db.m_transactionInProgress); in commit() 71 m_inProgress = !m_db.executeCommand("COMMIT"); in commit() 72 m_db.m_transactionInProgress = m_inProgress; in commit() 83 ASSERT(m_db.m_transactionInProgress); in rollback() 84 m_db.executeCommand("ROLLBACK"); in rollback() [all …]
|
D | SQLiteDatabase.cpp | 51 : m_db(0) in SQLiteDatabase() 69 if (SQLiteFileSystem::openDatabase(filename, &m_db, forWebSQLDatabase) != SQLITE_OK) { in open() 71 sqlite3_errmsg(m_db)); in open() 72 sqlite3_close(m_db); in open() 73 m_db = 0; in open() 76 if (sqlite3_extended_result_codes(m_db, 1) != SQLITE_OK) { in open() 77 LOG_ERROR("SQLite database error when enabling extended errors - %s", sqlite3_errmsg(m_db)); in open() 78 sqlite3_close(m_db); in open() 79 m_db = 0; in open() 94 if (m_db) { in close() [all …]
|
D | SQLiteDatabase.h | 61 bool isOpen() const { return m_db; } in isOpen() 107 return m_db; in sqlite3Handle() 142 sqlite3* m_db; variable
|
D | SQLiteTransaction.h | 50 SQLiteDatabase& m_db;
|
/external/webkit/Source/WebCore/storage/ |
D | IDBSQLiteBackingStore.cpp | 182 if (!backingStore->m_db.open(path)) { in open() 189 backingStore->m_db.setMaximumSize(maximumSize); in open() 190 backingStore->m_db.turnOnIncrementalAutoVacuum(); in open() 192 if (!createTables(backingStore->m_db)) in open() 194 if (!migrateDatabase(backingStore->m_db)) in open() 202 SQLiteStatement databaseQuery(m_db, "SELECT id, version FROM Databases WHERE name = ?"); in extractIDBDatabaseMetaData() 225 SQLiteStatement query(m_db, sql); in setIDBDatabaseMetaData() 240 rowId = m_db.lastInsertRowID(); in setIDBDatabaseMetaData() 247 …SQLiteStatement query(m_db, "SELECT id, name, keyPath, doAutoIncrement FROM ObjectStores WHERE dat… in getObjectStores() 268 …SQLiteStatement query(m_db, "INSERT INTO ObjectStores (name, keyPath, doAutoIncrement, databaseId)… in createObjectStore() [all …]
|
D | IDBLevelDBBackingStore.cpp | 1465 , m_db(db) in IDBLevelDBBackingStore() 1501 if (!setUpMetadata(backingStore->m_db.get())) in open() 1511 bool ok = getInt(m_db.get(), key, foundId); in extractIDBDatabaseMetaData() 1515 …ok = getString(m_db.get(), DatabaseMetaDataKey::encode(foundId, DatabaseMetaDataKey::kUserVersion)… in extractIDBDatabaseMetaData() 1560 rowId = getNewDatabaseId(m_db.get()); in setIDBDatabaseMetaData() 1563 if (!putInt(m_db.get(), key, rowId)) in setIDBDatabaseMetaData() 1567 …if (!putString(m_db.get(), DatabaseMetaDataKey::encode(rowId, DatabaseMetaDataKey::kUserVersion), … in setIDBDatabaseMetaData() 1578 OwnPtr<LevelDBIterator> it(m_db->newIterator()); in getObjectStores() 1664 int64_t objectStoreId = getNewObjectStoreId(m_db.get(), databaseId); in createObjectStore() 1674 bool ok = putString(m_db.get(), nameKey, name); in createObjectStore() [all …]
|
D | IDBSQLiteBackingStore.h | 74 SQLiteDatabase m_db; variable
|
D | IDBLevelDBBackingStore.h | 81 OwnPtr<LevelDBDatabase> m_db; variable
|
/external/webkit/Source/WebCore/platform/leveldb/ |
D | LevelDBDatabase.cpp | 91 : m_db(0) in LevelDBDatabase() 116 result->m_db = WTF::adoptPtr(db); in open() 128 return m_db->Put(writeOptions, makeSlice(key), makeSlice(value)).ok(); in put() 136 return m_db->Delete(writeOptions, makeSlice(key)).ok(); in remove() 142 if (!m_db->Get(leveldb::ReadOptions(), makeSlice(key), &result).ok()) in get() 151 leveldb::Iterator* i = m_db->NewIterator(leveldb::ReadOptions()); in newIterator()
|
D | LevelDBDatabase.h | 59 OwnPtr<leveldb::DB> m_db; variable
|