Commit Graph

35 Commits

Author SHA1 Message Date
Robbie Hanson
0751bfda14 Fixing enumeration within enumeration bug. Issue #255 2015-12-28 17:56:50 -08:00
Robbie Hanson
7f4b59b011 Adding deadlock detection for executing a transaction within a transaction. Issue #252 2015-12-23 12:02:05 -08:00
Robbie Hanson
3604160117 Removing unnecessary description from XCTAssert statements. 2015-11-23 10:38:14 -08:00
Robbie Hanson
8f627ba805 Added a VFS shim in order to add a notification for when the sql-level lock has been taken. This allows us to consolidate all the "markSqlLevelSharedReadLock" code into one place. And we also automatically get support for this in extensions, something that was missing before. 2015-11-04 18:41:15 -08:00
Robbie Hanson
1998437ce1 Simplifying YapDatabaseHooks API & adding unit tests for it. 2015-09-10 11:05:41 -07:00
Robbie Hanson
cb8b66e5b6 Removing brittle unit test. (It depended upon some hard coded execution times.) 2015-07-07 11:00:38 -07:00
Robbie Hanson
79aa43a41c Added support for backing up a sqlite file (plus WAL) via the sqlite_backup API. Issue #122 2015-07-07 10:38:30 -07:00
Robbie Hanson
abf804b18c Merge branch 'grgcombs-pullreq/use-lumberjack-v2' into 2.7 2015-07-02 15:20:00 -07:00
Robbie Hanson
a40549ea18 Adding support for flushing internal cached sqlite pages.
There's a method to do this called sqlite3_db_release_memory. That is now exposed via the new YapDatabaseConnectionFlushMemoryFlags_Internal.
2015-06-28 16:25:27 -07:00
Greg Combs
6665603689 [Pods] Decoupled CocoaLumberjack using CocoaPods
This allows users to link against a different CocoaLumberjack than what was provided in YapDatabase previously.  Consequently, CocoaLumberjack sources have been removed from the YapDatabase repository.

Moreover, the Xcode-mobile and Xcode-desktop test projects now each have a Podfile.  The downside is that you have to run `pod install` before executing the tests the first time around, but the upside is that CocoaLumberjack and YapDatabase libraries are now linked via Pods, and the test projects aren't so dependent on specific versions.
2015-06-25 11:53:59 -05:00
Robbie Hanson
3649d66c5b Fixing unit test - now uses semaphores to guarantee proper test, instead of making assumptions on sleeping & timing. 2015-06-05 18:47:00 -07:00
Robbie Hanson
dff790b281 The permittedTransactions API was really only meant for debugging. Using a macro to allow it to be disabled. 2014-10-08 10:49:23 -07:00
Robbie Hanson
65097c1015 Added permittedTransactions property. Allows for enforcement of desired behavior for dedicated connections. 2014-09-24 22:41:24 -07:00
Robbie Hanson
58c0a6b729 Removing setPrimitive methods, which have been fundamentally broken since the addition of extensions. Replacing them with advanced setObject methods that allow one to pass pre-serialized versions of the object and/or metadata. Also renaming the primitive accessors to use the new serializedObject / serializedMetadata terminology. Fixes issue #23 2014-09-08 21:38:12 -07:00
Robbie Hanson
78696a3dce Fixing compiler warnings in unit test code (shadowed variable warnings) 2014-05-13 15:22:05 -07:00
Robbie Hanson
282da09e2d Fixing compiler warnings in unit tests 2014-03-11 18:09:02 -07:00
Robbie Hanson
1663a5bdef Upgrading project to use XCTest 2014-03-11 18:02:14 -07:00
Robbie Hanson
273f6cf622 Updating unit test code to reflect updated API 2014-01-02 16:32:53 -08:00
Robbie Hanson
ead4707d12 Restoring some lost unit tests 2013-12-02 11:33:20 -08:00
Robbie Hanson
8fdea2dab0 Renaming all YapCollectionsDatabaseX classes to YapDatabaseX 2013-11-29 22:04:32 -08:00
Robbie Hanson
4572a3e593 MAJOR CHANGE : Dropping key/value datastore. The collection/key/value datastore will remain and become the new standard. 2013-11-29 20:19:29 -08:00
Robbie Hanson
08999c6fd5 Consolidating test files 2013-10-22 10:54:13 -07:00
Robbie Hanson
4a61e401a5 Improving unit tests 2013-09-17 15:43:38 -07:00
Robbie Hanson
36004caa62 Adding calls to super in Unit Tests. 2013-09-16 20:12:49 -07:00
Robbie Hanson
acce215cf0 The serializer & deserializer now take 'key' and 'collection, key' parameters. This makes it easier to customize the serialization & deserialization routines based on the key or collection. 2013-09-12 19:36:33 -07:00
Robbie Hanson
504fd01a16 Dropping Timestamp categories. They have been superseded by Views. 2013-07-17 16:51:47 -07:00
Robbie Hanson
ee3ce242a9 Added safety mechanism if database is updated mid enumeration (YapCollectionsDatabase) 2013-06-19 13:08:55 -07:00
Robbie Hanson
e2ab62fd1d Added safety mechanism if database is updated mid enumeration (YapDatabase) 2013-06-18 18:01:59 -07:00
Robbie Hanson
3cfea9575a Improving and standardizing method names. 2013-06-09 01:23:45 -07:00
Robbie Hanson
896820e0f2 Tweaking unit test: decreasing delay 2013-05-26 16:25:24 -07:00
Robbie Hanson
583100dfa5 Bug fix - issue causing cache(s) to get flushed inappropriately under certain circumstances 2013-03-26 19:41:47 -07:00
Robbie Hanson
6943a90f16 Updating unit tests 2013-03-21 18:04:15 -07:00
Robbie Hanson
6edea07151 Enabling extra test cases 2013-03-20 10:26:33 -07:00
Robbie Hanson
4017a1f30c Switching from NSTimeInterval (systemUptime) to simple uint64_t incremented variable for snapshot number. Faster to compare (int vs double), and faster to increment. 2013-03-16 18:24:10 -07:00
Robbie Hanson
a8239b9e23 Initial content push 2012-12-24 11:46:50 -06:00