Commit Graph

111 Commits

Author SHA1 Message Date
Robbie Hanson
fddd74a82d Adding support for memory mapped I/O. 2015-06-30 19:06:50 -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
192e165da8 Adding ability to set PRAGMA page_size of underlying sqlite database. 2015-05-14 14:58:13 -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
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
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
bb5040bcbe Extensions API Change: prepareChangeset is now flushPendingChangesToExtensionTables. commitTransaction is now didCommitTransaction. rollbackTransaction is now didRollbackTransaction. 2014-10-20 16:35:52 -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
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
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
d441af1a05 Adding YapWhitelistBlacklist class. This replaces primitive whitelist sets for things like options.allowedCollections. 2014-09-06 12:56:35 -07:00
Robbie Hanson
3bd290a99b Adding ability to run VACUUM command (synchronously or asynchronously) 2014-08-26 16:49:23 -07:00
Robbie Hanson
fb96066543 Bug fix for issue #104 2014-08-12 08:57:45 -07:00
Robbie Hanson
e230dbcda5 Setting the "pragma journal_size_limit" to zero by default. This should result in the WAL file staying much smaller during continued heavy use of the database. 2014-08-08 13:42:36 -07:00
Robbie Hanson
4c99d5d049 Performance improvement for non-persistent (in-memory only) extensions. Also fixing bugs having to do with rollback of transactions, and associated block changes. Plus minor bug fixes for improved thread safety concerning property accessors in YapDatabaseView. 2014-06-30 15:07:47 -07:00
Robbie Hanson
e91b4aace9 Updating CocoaLumberjack to commit fe6824c675ede4ecc19ca1edd95b0c36e3cb245c. Fixes issue #82 2014-06-13 18:27:30 -07:00
Robbie Hanson
2fc6bcc85c Memory optimization: allowing multiple YapDatabaseViewConnections to share a single immutable "state" 2014-06-10 15:51:39 -07:00
Robbie Hanson
17732ebe7a Adding allowedCollections options to YapDatabaseSecondaryIndex 2014-05-20 17:10:17 -07:00
Robbie Hanson
ec93fb55eb Renaming a few methods: numberOfKeysInGroup -> numberOfItemsInGroup, numberOfKeysInAllGroups -> numberOfItemsInAllGroups. This name change matches the API in YapDatabaseViewMappings (also UICollectionView). The previous methods have been marked as deprecated. 2014-05-15 17:59:10 -07:00
Robbie Hanson
e95e33a2f0 Work in progress on YapDatabaseSearchResultsView 2014-05-15 17:35:51 -07:00
Robbie Hanson
467652c42d Work in progress 2014-05-14 17:33:26 -07:00
Robbie Hanson
ace283ce77 Merge branch 'master' into 2.5 2014-05-13 17:23:54 -07:00
Robbie Hanson
8b19cb964a Bug fix for issue #74 - shadowed variable warnings 2014-05-13 13:16:51 -07:00
Robbie Hanson
eaf869e77f Work in progress 2014-04-24 14:45:08 -07:00
Robbie Hanson
ec2699a1ff Work in progress 2014-04-04 18:53:34 -07:00
Robbie Hanson
119f56ad22 Method stubs for YapDatabaseSearchResults (new extension in progress) 2014-04-02 15:48:20 -07:00
Robbie Hanson
33691cf541 Adding advanced configuration options. This includes configuration of PRAGMA synchronous option, and telling YapDatabase how to handle corrupt database files. Fixes issue #51 2014-03-26 16:26:55 -07:00
Robbie Hanson
4110c4e925 Renaming YapDatabaseDefaults class to YapDatabaseConnectionDefaults 2014-03-26 16:23:53 -07:00
Robbie Hanson
1663a5bdef Upgrading project to use XCTest 2014-03-11 18:02:14 -07:00
Robbie Hanson
6781ec626e Moving block type definitions to their own header file. 2014-02-11 19:58:33 -08:00
Robbie Hanson
e3fc1903e6 Moving block type definitions to their own header file. 2014-02-11 19:12:43 -08:00
Robbie Hanson
260a069ae2 Adding sanity check to secondary index registration. Will spit out a warning message if the setup has changed, but the version number didn’t. Only runs for debug compiles. Issue #29 2014-01-28 12:25:55 -08:00
Robbie Hanson
71e32647a0 Working on YapDatabaseRelationship extension. Adding methods to manually manage graph edges. This is in addition to the YapDatabaseRelationshipNode protocol. 2014-01-09 20:18:23 -08:00
Robbie Hanson
ac559665cd Adding unit tests for YapDatabaseRelationship extension 2014-01-02 21:17:58 -08:00
Robbie Hanson
97aad31bc4 Work in Progress 2014-01-02 16:26:52 -08:00
Robbie Hanson
4a6e4a262e Work in Progress 2013-12-19 12:51:38 -06:00
Robbie Hanson
a6b3c5f604 Work in Progress 2013-12-15 19:13:51 -08:00
Robbie Hanson
a15f3d413c Reorganizing file layout 2013-11-30 23:18:30 -08:00
Robbie Hanson
8c6b63972f Renaming YapAbstractDatabaseExtension to YapDatabaseExtension 2013-11-30 22:44:56 -08:00
Robbie Hanson
9549cbe0a1 Merging YapAbstractDatabase & YapDatabase (now that there is only a single subclass) 2013-11-30 22:07:26 -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