Home
last modified time | relevance | path

Searched refs:objectStore (Results 1 – 25 of 56) sorted by relevance

123

/external/webkit/LayoutTests/storage/indexeddb/
Dcursor-skip-deleted-expected.txt13 objectStore = db.createObjectStore('store', {keyPath: 'id'})
14 objectStore.createIndex('nameIndex', 'name')
22 trans.objectStore('store').openCursor(webkitIDBKeyRange.lowerBound(0))
25 request = trans.objectStore('store').delete(0)
27 request = trans.objectStore('store').delete(25)
29 request = trans.objectStore('store').delete(5)
30 request = trans.objectStore('store').delete(6)
31 request = trans.objectStore('store').delete(7)
36 request = trans.objectStore('store').delete(10)
39 request = trans.objectStore('store').delete(13)
[all …]
Dtransaction-and-objectstore-calls-expected.txt1 Test IndexedDB's transaction and objectStore calls
18 trans.objectStore('a')
19 Expecting exception from trans.objectStore('b')
22 Expecting exception from trans.objectStore('x')
27 trans.objectStore('a')
28 Expecting exception from trans.objectStore('b')
31 Expecting exception from trans.objectStore('x')
36 trans.objectStore('b')
37 Expecting exception from trans.objectStore('a')
40 Expecting exception from trans.objectStore('x')
[all …]
Dcursor-continue-expected.txt13 objectStore.createIndex('someIndex', 'x')
14 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
15 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
16 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
17 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
18 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
19 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
20 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
21 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
22 objectStore.add({'x': testData[nextToAdd]}, nextToAdd)
[all …]
Dcursor-delete-expected.txt13 objectStore = db.createObjectStore('test')
14 objectStore.add('myValue1', 'myKey1')
15 objectStore.add('myValue2', 'myKey2')
16 objectStore.add('myValue3', 'myKey3')
17 objectStore.add('myValue4', 'myKey4')
20 trans.objectStore('test').openCursor({range: keyRange})
34 trans.objectStore('test').openCursor(keyRange)
37 objectStore = trans.objectStore('test')
38 objectStore.add('myValue1', 'myKey1')
40 objectStore.openCursor(keyRange)
[all …]
Dcursor-update-expected.txt13 objectStore = db.createObjectStore('basicStore')
14 objectStore.add('myValue1', 'myKey1').onerror = unexpectedErrorCallback
15 objectStore.add('myValue2', 'myKey2').onerror = unexpectedErrorCallback
16 objectStore.add('myValue3', 'myKey3').onerror = unexpectedErrorCallback
17 objectStore.add('myValue4', 'myKey4').onerror = unexpectedErrorCallback
18 objectStore = db.createObjectStore('autoIncrementStore', {autoIncrement: true})
19 objectStore.add('foo1').onerror = unexpectedErrorCallback
20 objectStore.add('foo2').onerror = unexpectedErrorCallback
21 objectStore.add('foo3').onerror = unexpectedErrorCallback
22 objectStore.add('foo4').onerror = unexpectedErrorCallback
[all …]
Dcursor-index-delete-expected.txt13 objectStore = db.createObjectStore('test')
14 objectStore.createIndex('testIndex', 'x')
15 objectStore.add({x: 1}, 'myKey1')
16 objectStore.add({x: 2}, 'myKey2')
17 objectStore.add({x: 3}, 'myKey3')
18 objectStore.add({x: 4}, 'myKey4')
21 trans.objectStore('test').index('testIndex').openCursor(keyRange)
35 trans.objectStore('test').index('testIndex').openCursor(keyRange)
38 objectStore = trans.objectStore('test')
39 objectStore.add({x: 1}, 'myKey1')
Dcreate-object-store-options-expected.txt17 trans.objectStore('a').put({'a': 0})
18 trans.objectStore('b').put({'a': 0}, 0)
19 trans.objectStore('a').get(0)
21 trans.objectStore('b').get(0)
Dexception-in-event-aborts-expected.txt22 store = trans.objectStore('storeName')
32 store = trans.objectStore('storeName')
42 store = trans.objectStore('storeName')
52 store = trans.objectStore('storeName')
Dopen-cursor-expected.txt13 objectStore = db.createObjectStore('test')
14 objectStore.add('myValue', 'myKey')
26 objectStore.openCursor(keyRange)
Dtransaction-read-only-expected.txt16 Expecting exception from trans.objectStore('store').put('a', 'b')
20 Expecting exception from trans.objectStore('store').delete('x')
24 cur = trans.objectStore('store').openCursor()
Derror-causes-abort-by-default-expected.txt18 store = trans.objectStore('storeName')
28 store = trans.objectStore('storeName')
37 store = trans.objectStore('storeName')
Dobjectstore-basics-expected.txt39 store = setVersionTrans.objectStore('storeName')
53 store = transaction.objectStore('storeName')
69 store = transaction.objectStore('storeName')
75 store = transaction.objectStore('storeName')
82 store = transaction.objectStore('storeName')
Ddata-corruption-expected.txt17 request = transaction.objectStore('storeName').add({x: testDate}, 'key')
20 request = transaction.objectStore('storeName').get('key')
/external/webkit/Source/WebCore/storage/
DIDBObjectStoreBackendImpl.cpp86 RefPtr<IDBObjectStoreBackendImpl> objectStore = this; in get() local
89 …heduleTask(createCallbackTask(&IDBObjectStoreBackendImpl::getInternal, objectStore, key, callbacks… in get()
93 …nternal(ScriptExecutionContext*, PassRefPtr<IDBObjectStoreBackendImpl> objectStore, PassRefPtr<IDB… in getInternal() argument
95 …String wireData = objectStore->m_backingStore->getObjectStoreRecord(objectStore->m_databaseId, obj… in getInternal()
128 RefPtr<IDBObjectStoreBackendImpl> objectStore = this; in put() local
135 …heduleTask(createCallbackTask(&IDBObjectStoreBackendImpl::putInternal, objectStore, value, key, pu… in put()
139 … IDBObjectStoreBackendImpl::selectKeyForPut(IDBObjectStoreBackendImpl* objectStore, IDBKey* key, P… in selectKeyForPut() argument
144 const bool autoIncrement = objectStore->autoIncrement(); in selectKeyForPut()
145 const bool hasKeyPath = !objectStore->m_keyPath.isNull(); in selectKeyForPut()
153 objectStore->resetAutoIncrementKeyCache(); in selectKeyForPut()
[all …]
DIDBDatabaseBackendImpl.cpp109 …RefPtr<IDBObjectStoreBackendImpl> objectStore = IDBObjectStoreBackendImpl::create(m_backingStore.g… in createObjectStore() local
110 ASSERT(objectStore->name() == name); in createObjectStore()
114 …llbackTask(&IDBDatabaseBackendImpl::createObjectStoreInternal, database, objectStore, transaction), in createObjectStore()
115 … createCallbackTask(&IDBDatabaseBackendImpl::removeObjectStoreFromMap, database, objectStore))) { in createObjectStore()
120 m_objectStores.set(name, objectStore); in createObjectStore()
121 return objectStore.release(); in createObjectStore()
124 …DBDatabaseBackendImpl> database, PassRefPtr<IDBObjectStoreBackendImpl> objectStore, PassRefPtr<ID… in createObjectStoreInternal() argument
128 …backingStore->createObjectStore(database->id(), objectStore->name(), objectStore->keyPath(), objec… in createObjectStoreInternal()
133 objectStore->setId(objectStoreId); in createObjectStoreInternal()
137 PassRefPtr<IDBObjectStoreBackendInterface> IDBDatabaseBackendImpl::objectStore(const String& name) in objectStore() function in WebCore::IDBDatabaseBackendImpl
[all …]
DIDBTransactionBackendImpl.cpp63 PassRefPtr<IDBObjectStoreBackendInterface> IDBTransactionBackendImpl::objectStore(const String& nam… in objectStore() function in WebCore::IDBTransactionBackendImpl
76 RefPtr<IDBObjectStoreBackendInterface> objectStore = m_database->objectStore(name); in objectStore() local
81 if (!objectStore) { in objectStore()
85 return objectStore.release(); in objectStore()
DIDBTransaction.cpp84 PassRefPtr<IDBObjectStore> IDBTransaction::objectStore(const String& name, ExceptionCode& ec) in objectStore() function in WebCore::IDBTransaction
90 RefPtr<IDBObjectStoreBackendInterface> objectStoreBackend = m_backend->objectStore(name, ec); in objectStore()
95 RefPtr<IDBObjectStore> objectStore = IDBObjectStore::create(objectStoreBackend, this); in objectStore() local
96 return objectStore.release(); in objectStore()
DIDBIndex.h44 …> create(PassRefPtr<IDBIndexBackendInterface> backend, IDBObjectStore* objectStore, IDBTransaction… in create() argument
46 return adoptRef(new IDBIndex(backend, objectStore, transaction)); in create()
52 IDBObjectStore* objectStore() const { return m_objectStore.get(); } in objectStore() function
DIDBIndexBackendImpl.cpp96 …RefPtr<IDBObjectStoreBackendInterface> objectStore = transaction->objectStore(index->m_storeName, … in openCursorInternal() local
97 ASSERT(objectStore && !ec); in openCursorInternal()
99 …mpl::create(backingStoreCursor.get(), direction, cursorType, transaction.get(), objectStore.get()); in openCursorInternal()
DIDBCursorBackendImpl.h51 …rsorType, IDBTransactionBackendInterface* transaction, IDBObjectStoreBackendInterface* objectStore) in create() argument
53 …return adoptRef(new IDBCursorBackendImpl(cursor, direction, cursorType, transaction, objectStore)); in create()
/external/webkit/Source/WebKit/chromium/src/
DWebIDBTransactionImpl.cpp54 WebIDBObjectStore* WebIDBTransactionImpl::objectStore(const WebString& name, ExceptionCode& ec) in objectStore() function in WebKit::WebIDBTransactionImpl
56 RefPtr<IDBObjectStoreBackendInterface> objectStore = m_backend->objectStore(name, ec); in objectStore() local
57 if (!objectStore) in objectStore()
59 return new WebIDBObjectStoreImpl(objectStore); in objectStore()
DIDBTransactionBackendProxy.cpp57 PassRefPtr<IDBObjectStoreBackendInterface> IDBTransactionBackendProxy::objectStore(const String& na… in objectStore() function in WebKit::IDBTransactionBackendProxy
59 WebIDBObjectStore* objectStore = m_webIDBTransaction->objectStore(name, ec); in objectStore() local
60 if (!objectStore) in objectStore()
62 return IDBObjectStoreBackendProxy::create(objectStore); in objectStore()
DIDBObjectStoreBackendProxy.cpp48 …toreBackendInterface> IDBObjectStoreBackendProxy::create(PassOwnPtr<WebIDBObjectStore> objectStore) in create() argument
50 return adoptRef(new IDBObjectStoreBackendProxy(objectStore)); in create()
53 IDBObjectStoreBackendProxy::IDBObjectStoreBackendProxy(PassOwnPtr<WebIDBObjectStore> objectStore) in IDBObjectStoreBackendProxy() argument
54 : m_webIDBObjectStore(objectStore) in IDBObjectStoreBackendProxy()
DWebIDBDatabaseImpl.cpp71 …RefPtr<IDBObjectStoreBackendInterface> objectStore = m_databaseBackend->createObjectStore(name, ke… in createObjectStore() local
72 if (!objectStore) { in createObjectStore()
76 return new WebIDBObjectStoreImpl(objectStore); in createObjectStore()
DIDBDatabaseBackendProxy.cpp83 …WebIDBObjectStore* objectStore = m_webIDBDatabase->createObjectStore(name, keyPath, autoIncrement,… in createObjectStore() local
84 if (!objectStore) in createObjectStore()
86 return IDBObjectStoreBackendProxy::create(objectStore); in createObjectStore()

123