Commit Graph

2201 Commits

Author SHA1 Message Date
Ben Turner
4a0f7c988c Prevent overlapping transactions from running concurrently (using read-write lock behavior) 2010-05-28 01:23:07 -07:00
Ben Turner
48194e96fe Add TransactionThreadPool and make transactions use it instead of the database thread 2010-05-26 23:21:43 -07:00
Ben Turner
5cf72bba87 Make transactions hold their own database connections 2010-05-25 19:58:35 -07:00
Ben Turner
c2763a4bbc Don't lookup non-mutable data 2010-05-24 14:49:58 -07:00
Ben Turner
81a546bbe8 Fastpath objectStore name searches 2010-05-24 13:56:03 -07:00
Ben Turner
7e45c56c59 More extensive test for global data 2010-05-24 00:00:37 -07:00
Ben Turner
0bbeab0aec Move to global mainthread metadata storage for databases and object stores 2010-05-23 23:54:39 -07:00
Ben Turner
27c2ce64df Update tests to new api 2010-05-21 16:09:16 -07:00
Ben Turner
6a73a8b9e6 Fix more bugs 2010-05-21 16:08:58 -07:00
Shawn Wilsher
8cd61a1cf1 Add Savepoint helper for operations where we need a nested transaction.
--HG--
extra : rebase_source : 589234054f00e8886abb1668f69f250e8c94d111
2010-05-21 15:29:38 -07:00
Ben Turner
3c45198d12 Fix some bugs 2010-05-21 13:49:16 -07:00
Ben Turner
3aa1714164 Fix some small things 2010-05-21 12:28:29 -07:00
Ben Turner
b9282db075 Add abort and complete events to IDBTransactionRequest 2010-05-21 09:24:47 -07:00
Ben Turner
1ea083656e Support transactions with more than one object store listed 2010-05-20 18:40:11 -07:00
Ben Turner
c08686959c Revert debugging change that slipped in 2010-05-20 15:50:27 -07:00
Ben Turner
5cb526715d Make open transactions keep their DB thread alive 2010-05-20 15:47:34 -07:00
Ben Turner
91db4b768c Make objectstores and add/get work again with new API 2010-05-20 14:51:01 -07:00
Ben Turner
1d24702858 Add skeleton for transactions 2010-05-18 16:50:18 -07:00
Ben Turner
2d22a8ae98 Remove indexes from IDBDatabaseRequest, more 2010-05-18 10:20:52 -07:00
Ben Turner
864f545209 Remove indexes from IDBDatabaseRequest 2010-05-18 10:12:54 -07:00
Ben Turner
122d6fb1fa Add IDBTransactionEvent 2010-05-18 10:12:30 -07:00
Ben Turner
290d7c5745 Remove readOnly from IndexedDatabaseRequest.open 2010-05-18 10:00:58 -07:00
Ben Turner
cac15cf111 Fix keyPath madness and make autoincrement+keyPath+JSObjects work 2010-05-17 18:50:41 -07:00
Shawn Wilsher
fa464181d2 Add tables for index support. 2010-05-12 15:24:08 -07:00
Shawn Wilsher
9aeb1b0a64 Support the setting and getting of version information. 2010-05-12 12:59:11 -07:00
Shawn Wilsher
7318105b8e Add test for inline autoincrement keys being added to object stores when they are stored.
Also refactors some common test code.
2010-05-11 16:22:44 -07:00
Shawn Wilsher
b2c3afd9ab Cache get statements for object stores.
Also makes sure we reset other statements that we use.
2010-05-11 15:23:22 -07:00
Shawn Wilsher
cf84e90938 Fix transaction issue and assert that we have a connection in DoDatabaseWork methods that need it.
--HG--
extra : rebase_source : 0bb2d5b4b7dbf45b64a437f7dd1b7127708cd06c
2010-05-11 14:33:35 -07:00
Ben Turner
c99dc21cb1 Better timeout setting 2010-05-11 14:21:33 -07:00
Ben Turner
c072fbaa3f Disable broken test until we can figure out what to do with it 2010-05-11 09:39:27 -07:00
Ben Turner
5a1a23f3d9 Allow subclasses to override timeout value for AsyncConnectionHelper 2010-05-10 17:29:20 -07:00
Ben Turner
9a0865f767 Simple timeout support for queries 2010-05-10 17:22:20 -07:00
Ben Turner
72eae22266 Fixups 2010-05-10 14:54:27 -07:00
Shawn Wilsher
1864a37944 Add two additional test cases for removing puted items, and a small fix to make sure all cases of put are actually inserted. 2010-05-10 14:26:56 -07:00
Shawn Wilsher
7825f33ec2 Handle all inline key cases for put and add tests that removing works.
--HG--
extra : rebase_source : 341ade97cf91b6d5d903a67f12c2d17b759bdc88
2010-05-10 13:42:23 -07:00
Ben Turner
8b1779aedd Make GetSuccessResult return an error code 2010-05-10 12:01:55 -07:00
Shawn Wilsher
b822e970e4 Make the test more awesome with generator send support. 2010-05-10 10:49:42 -07:00
Ben Turner
30317337c9 Make indexedDB.open async 2010-05-09 21:26:31 -07:00
Ben Turner
ad78046b90 Move 'source' property from IDBRequest to success/error events 2010-05-09 15:04:46 -07:00
Shawn Wilsher
c2a5fe35aa Fix put to work better. Now with tests. 2010-05-07 16:18:27 -07:00
Ben Turner
d50e2e3c8e Fix leak 2010-05-07 16:04:22 -07:00
Ben Turner
fdf236368d Fix overwrite method, and bad cleanup of comptrs 2010-05-07 15:05:42 -07:00
Shawn Wilsher
18b42344d0 Implement remove on an object store with cached statements. 2010-05-07 14:15:23 -07:00
Ben Turner
a984bf7f15 Make put have aNoOverwrite default to true 2010-05-07 11:37:41 -07:00
Ben Turner
a8497d0a14 Finalize cached statements on the connection thread 2010-05-06 22:17:14 -07:00
Shawn Wilsher
4fe9e6dfe4 Cache put statements to avoid the cost of recreating them all the time. 2010-05-06 10:59:31 -07:00
Ben Turner
30cfb9b1d1 Fix LazyIdleThread to work properly and not eat events and hang the browser. 2010-05-05 22:44:49 -07:00
Ben Turner
6c2466d8ad Merge mozilla-central 2010-05-04 17:39:59 -07:00
Ben Turner
4c0691f45e Add tests for get and put 2010-05-04 17:36:42 -07:00
Ben Turner
c394cbd4de Fix Get/Put to correctly deal with different key types 2010-05-04 16:44:04 -07:00