Robbie Hanson
9cbc4a0132
Adding unit test for issue #399 & simplifying code
2017-11-24 19:15:22 -05:00
Robbie Hanson
b142d8b69d
Adding unit test for issue #426
2017-11-24 18:16:20 -05:00
Robbie Hanson
1ecb1b861e
Merge branch 'master' into v3.0
2017-01-06 17:51:07 -08:00
Sami Samhuri
68ba99fdb1
update comments and docs referring to file URLs
2016-08-06 13:11:56 -07:00
Robbie Hanson
c19cef115f
Refactoring YapDatabaseView code: Now the core underlying architecture is split into its own abstract base class. This will allow other view-based classes to be created easier.
2016-06-16 17:53:24 -07:00
Robbie Hanson
e87080c167
Fixing compiler warnings in unit test code.
2016-03-15 16:20:30 -07:00
Ryan Arana
7f8bb1bd55
Add tests for #288 - YapDatabaseHooks extension doesn't seem to be respecting the allowedCollections property when specified
2016-02-26 09:39:28 -08:00
SofteqDG
d496946631
YapDatabaseSecondaryIndex tests fix.
2016-01-19 16:32:18 +03:00
Robbie Hanson
3693a61f8f
Adding test code for YapDatabaseRelationship version migration.
2016-01-12 11:43:47 -08:00
Robbie Hanson
0b1dba8ca8
YapDatabaseRelationship now uses NSURL-based file references.
2016-01-12 10:37:04 -08:00
Robbie Hanson
408eade6cc
Merge branch 'master' into v2.8
2015-12-30 10:40:30 -08:00
Robbie Hanson
1449cfb80d
Bug fix for issue #256
2015-12-30 10:36:23 -08:00
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
4a95f1cdc6
Removing deprecated method: findRangeInGroup:usingBlock:blockType:
2015-09-15 15:50:46 -07:00
Robbie Hanson
fe11e3d97d
Adding common YapDatabaseBlockType enum for all extensions to share.
2015-09-15 15:30:55 -07:00
Robbie Hanson
4ab80a16b0
Fixing Xcode-mobile workspace
2015-09-10 11:13:45 -07:00
Robbie Hanson
1998437ce1
Simplifying YapDatabaseHooks API & adding unit tests for it.
2015-09-10 11:05:41 -07:00
Robbie Hanson
d8680775b6
Added support for aggregate functions to YapDatabaseQuery & YapDatabaseSecondaryIndex. Fixes issue #156
2015-08-18 10:05:25 -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
acc282b9ca
Fixing Xcode-desktop project
2015-07-02 16:36:59 -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
ab17a7f90b
Merge branch 'pullreq/use-lumberjack-v2' of https://github.com/grgcombs/YapDatabase into grgcombs-pullreq/use-lumberjack-v2
2015-07-02 15:18:57 -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
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
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
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
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
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
68bdb5b8db
Bug fix for issue #125 - View mapping notification bug. Unit tests added.
2014-11-14 18:21:24 -08:00
Robbie Hanson
e0d2e00ce1
Possible bug fix for issue #125 . Unit test added.
2014-11-05 18:13:38 -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
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
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
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