Robbie Hanson
fddd74a82d
Adding support for memory mapped I/O.
2015-06-30 19:06:50 -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
Robbie Hanson
f56b485f64
Fixing recent unit tests to work with new YapDatabaseView grouping/sorting/filtering block signature.
2015-06-28 15:25:19 -07:00
Robbie Hanson
d6b1cb79ac
Merge branch 'master' into 2.7
2015-06-28 14:06:38 -07:00
Robbie Hanson
03a02e87d4
Bug fix for YapDatabaseQuery: didn't properly handle empty arrays or multiple arrays in parameter list.
...
Now also supports NSNull in parameter list.
2015-06-27 16:22:01 -07:00
Robbie Hanson
82426acd8a
Adding unit tests for issue #186
2015-06-26 16:50:33 -07:00
Robbie Hanson
e51b06c6a2
Merge pull request #181 from chrisballinger/travis-ci
...
Add support for running tests on Travis-CI
2015-06-17 10:33:51 -07:00
Robbie Hanson
f3c977d3d6
Adding "YapDatabaseReadTransaction *transaction" to parameter list for YapDatabaseView & YapDatabaseFilteredView blocks.
...
This allows for more flexibility when implementing your grouping/sorting/filtering blocks. That is, you can now use other objects (in the database), or even other extensions to assist you in the implementation logic.
2015-06-09 15:07:14 -07:00
Robbie Hanson
2d0584be50
Fixing bug in YapDatabaseRelationship extension.
...
If one attempted to enumerate edges that included a source or destination that wasn't yet inserted into the database, then the code would short-circuit & return no edges. This was despite the fact that YapDatabaseRelationship explicitly supports adding edges for source/destination nodes that haven't been inserted yet. This patches the bug, and includes corresponding unit tests.
See also: https://groups.google.com/forum/#!topic/yapdatabase/E7q0truTrp8
2015-06-05 18:52:43 -07: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
Chris Ballinger
412d7f1e43
Run OS X unit tests on Travis-CI
2015-05-14 17:10:07 -07:00
Robbie Hanson
192e165da8
Adding ability to set PRAGMA page_size of underlying sqlite database.
2015-05-14 14:58:13 -07:00
Robbie Hanson
d0920352d5
Changing YapCollectionKeyCreate to a macro. Better performance & fixes compiler issues.
2015-05-14 14:02:51 -07:00
Robbie Hanson
bb2e4e6132
Removing a bunch of deprecated methods.
2015-05-13 18:01:59 -07:00
Robbie Hanson
089cbfba45
Merge branch 'issue_157'
2015-04-21 00:16:01 -07:00
Robbie Hanson
54bfb0a51b
Bug fix for issue #157 - WAL is never cleared
...
A few edge-case scenarios were discovered where the WAL file could grow without bound. This change adds an "aggressive" checkpoint operation, along with a new YapDatabaseOptions property to control when this aggressive checkpoint should be executed.
2015-04-20 23:58:13 -07:00
Daniel Lahyani
a9141469ad
Fix sing mismatches in assignments and comparisons.
2015-04-14 14:47:15 +03:00
Daniel Lahyani
fff4666e6e
Mark unused parameters with __unused.
2015-04-14 14:40:16 +03:00
Robbie Hanson
94afc9f0b4
Bug fixes for YapDatabaseSearchResultsView extension. Wasn't properly updating stored snippet. And wasn't properly updating after items were inserted/updated.
2015-03-31 18:24:14 -07:00
Robbie Hanson
43e11da060
Adding YapDatabaseHooks extension.
2015-03-27 16:17:35 -07:00
Robbie Hanson
31123b0991
Fixing a few compiler warnings, and cleaning up Xcode projects.
2015-03-18 16:03:48 -07:00
Robbie Hanson
745e718f0d
Major re-working of YapDatabaseCloudKit to address bugs in Apple's CloudKit framework/service implementation.
2015-03-11 18:49:26 -07:00
Robbie Hanson
841b857c9a
Adding sqlite version property to YapDatabase.
2015-03-05 10:34:02 -08:00
Robbie Hanson
dfdabcc376
Merge branch 'master' into 2.6
2015-02-16 14:00:33 -08:00
Robbie Hanson
dabe7e6a46
Fixing implementation for nonPersistent views, and adding corresponding unit tests.
2015-01-14 11:36:59 -08:00
Nico Prananta
3e0feff462
unit test skipInitialPopulationView for YDBView and YDBFilteredView
2015-01-09 11:27:10 +09:00
Robbie Hanson
88ef306b0e
The YapDatabaseSanitizer is now split into YapDatabasePreSanitizer & YapDatabasePostSanitizer.
2014-11-25 17:47:28 -08:00
Robbie Hanson
a2868ea795
Merge branch 'master' into 2.6
2014-11-25 09:36:46 -08:00
Robbie Hanson
d84938db27
Fixing Mac/Desktop Xcode project.
2014-11-24 15:22:36 -08:00
Robbie Hanson
f678c89ee2
Improving the documentation (and flexibility) of YapCache to allow it to be exposed to the outside world. (It's no longer internal/private. It can now be used in your projects if you want.)
2014-11-24 15:00:42 -08:00
Robbie Hanson
edc2a6996b
Merge branch 'master' into 2.6
2014-11-16 14:45:11 -08:00
Robbie Hanson
68bdb5b8db
Bug fix for issue #125 - View mapping notification bug. Unit tests added.
2014-11-14 18:21:24 -08:00
Robbie Hanson
23436198f5
Merge branch 'master' into 2.6
2014-11-05 21:24:48 -08:00
Robbie Hanson
e0d2e00ce1
Possible bug fix for issue #125 . Unit test added.
2014-11-05 18:13:38 -08:00
Robbie Hanson
56bdf15023
Merge branch 'master' into 2.6
2014-11-05 12:34:30 -08:00
Robbie Hanson
e2ee3a348d
Bug fix for issue #128 - Flexible range minLength bug. (Unit tests added)
2014-11-05 12:27:01 -08:00
Robbie Hanson
bb5040bcbe
Extensions API Change: prepareChangeset is now flushPendingChangesToExtensionTables. commitTransaction is now didCommitTransaction. rollbackTransaction is now didRollbackTransaction.
2014-10-20 16:35:52 -07:00
Robbie Hanson
ece9c86aa4
Merge pull request #120 from Tundaware/119-nsarray-query-parameters
...
Adds support for NSArray parameters to YapDatabaseQuery
2014-10-08 12:02:54 -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
fb89e8c77e
Improving benchmarking code to test readOnly transaction overhead when using a longLivedReadTransaction
2014-10-08 10:38:24 -07:00
George Cox
5701e64c60
Adds support for NSArray parameters to YapDatabaseQuery
...
Example:
[YapDatabaseQuery queryWithFormat:@"WHERE col IN (?)", anArray];
- Adds unit tests for YapDatabaseQuery
- Adds new unit test for YapDatabaseSecondaryIndex since it makes use of YapDatabaseQuery
Addresses issue #119
2014-10-06 23:28:49 -04:00
Robbie Hanson
41c8e77e32
Fix for assertion crash in YapDatabaseView. Bug caused by recent commit. Unit test added.
2014-10-02 16:08:03 -07:00
Robbie Hanson
e3ff0dcb08
Updating YapDatabaseSecondaryIndex init API to work with Swift. (Similar to recent fixes for YapDatabaseView)
2014-10-01 15:19:01 -07:00
Robbie Hanson
154510f365
Restoring removed init methods in YapDatabaseFullTextSearch as deprecated.
2014-10-01 12:33:52 -07:00
Robbie Hanson
4d54895ffb
Updating YapDatabaseFullTextSearch init API to work with Swift. (Similar to recent fixes for YapDatabaseView)
2014-10-01 10:30:19 -07:00
Robbie Hanson
6b4dffe66d
Fixed an obscure bug in YapDatabaseView that may not properly remove a rowid if an item is inserted & deleted in the same transaction. Unit test added.
2014-09-30 18:53:44 -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
db28cc46be
Simplifying the API for creating Views. Instead of passing a block & blockType, there is a new wrapper class that automatically sets the blockType for you. This also helps when using YDBViews in Swift. Addresses issue #91 .
2014-09-14 17:32:11 -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
d441af1a05
Adding YapWhitelistBlacklist class. This replaces primitive whitelist sets for things like options.allowedCollections.
2014-09-06 12:56:35 -07:00