Commit Graph

1077 Commits

Author SHA1 Message Date
Niels Andriesse 9533cad0a5 Patch Any? bridging bug
The object parameter was getting bridged to Any when it should be bridged to Any?. This could cause recurring crashes for some users.
2020-11-30 12:04:38 +11:00
William Morriss 5fa11c84d3 <> 2018-07-04 02:21:55 -07:00
William Morriss 190cbb6c98 add foundation import 2018-07-03 14:42:09 -07:00
Robbie Hanson 31475d08ff Bug fix for previous commit. 2018-06-28 16:05:50 -04:00
Robbie Hanson 81c2f830d4 Adding new `insertedKeys` set to YapDatabaseModifiedNotification. 2018-06-28 12:36:44 -04:00
Robbie Hanson 4e59aff974 Adding convenience method to detect when all previous asyncRegisterExtension requests have completed. 2018-06-20 15:18:25 -04:00
Robbie Hanson fcfda4e5f0 Improving documentation in ConnectionProxy, and adding another reset-like method. 2018-05-23 19:09:49 -04:00
Robbie Hanson 5f480844db Fixing more compiler warnings for issue #444 2018-05-23 19:07:34 -04:00
Robbie Hanson b5c42db8c6 Minor changes recommended by analyzer. 2018-05-23 17:31:07 -04:00
Robbie Hanson ca0cb15154 Fix for issue #444 - Compiler warnings in Xcode 9 2018-05-23 17:30:28 -04:00
Robbie Hanson 5d3ea2e97b Adding NS_ASSUME_NONNULL header/footer to YapManyToManyCache.h, and fixing some nullability annotations. Also removing the nullability annotations from private header files, as the compiler throws a fit about all the other missing annotations within the file. (And because the private header files are only used by Obj-C.) 2018-04-05 10:17:37 -07:00
Denis Zubkov 4a207244ae Added __nullable to metadata in headers to make sure Swift 4.1 doesn't throw EXC_BAD_ACCESS 2018-04-05 15:25:14 +10:00
Robbie Hanson cc678addef Updating YDBRelationship delete rules for files, to match recent changes for delete rules for nodes. Addresses issue #148 2018-04-04 10:56:58 -07:00
Artem Kirienko 9bf0ddf311 Edges processing updated to fix #148
Edge count query doesn't include edge name anymore.
2018-03-28 20:08:42 +03:00
Robbie Hanson 2947fda783 Potential bug fix for issues #437 and #441 2018-03-27 11:18:11 -07:00
Robbie Hanson 5b3f5030e7 Adding hook to additionally configure newly created connections in a connection pool. This is useful for configuring things such as permittedTransactions. 2018-03-19 15:00:56 -06:00
Robbie Hanson b9d9fe42f6 Adding ConnectionPool to CocoaPods & Carthage. 2018-03-19 14:01:44 -06:00
Robbie Hanson e26639737d New utility class: YapDatabaseConnectionPool. A simple load balancer designed for background (non-main-thread) tasks that perform read-only transactions. 2018-03-19 13:30:56 -06:00
Robbie Hanson e59d5fb5f9 Adding new property on YapDatabaseConnection: pendingTransactionCount 2018-03-19 12:02:11 -06:00
Robbie Hanson 27b32aa3ea Minor optimization - check completionBlock for NULL once, instead of twice. 2018-03-19 12:00:12 -06:00
Robbie Hanson 30b053c000 Explicitly marking dynamic properties dynamic. This makes it easier to find spelling mistakes in function names. 2018-03-19 11:57:56 -06:00
Robbie Hanson 114d371b7a Adding ability to create a databaseConnection with a pre-configured set of configuration options. 2018-03-19 11:56:41 -06:00
Robbie Hanson 102a3436b9 Deprecating the defaultX properties in YapDatabase, in favor of the new(ish) YapDatabaseConnectionConfig class. 2018-03-18 13:41:13 -06:00
Robbie Hanson 5df37ee440 Fixing compiler warning & bug in YDBCloudCore. 2018-03-18 12:28:46 -06:00
Robbie Hanson ec857d7021
Merge pull request #439 from signalapp/charlesmchen/unencryptedHeaders
Charlesmchen/unencrypted headers
2018-03-18 12:18:59 -06:00
Mathieu Alvado 3174f45e67 Fix missing nullability annotation in backup methods
Missing annotations were causing a crash in Swift when accessing error argument.
2018-03-09 01:17:13 -05:00
Robbie Hanson 9f97fed893 Bug fix: enumeration code was skipping inserted operations in the last commit. 2018-03-08 15:38:10 -07:00
Robbie Hanson f91e7a191e Adding a few convenience methods to YapDatabaseCloudCoreTransaction. 2018-03-08 15:35:51 -07:00
Robbie Hanson a19f0d29e4 Fixing a crash that was described in issue #399 but this time with protocolEdges instead of manualEdges. Added corresponding unit test as well. 2018-03-08 15:32:14 -07:00
Robbie Hanson 9ac1bce51a
Merge pull request #440 from rupertdaniel/fts-add-transaction-to-handler-block
Fts add transaction to handler blocks
2018-03-08 17:43:55 -03:00
Marc Palmer d9199ca084
Fix for _enumerateRowidsForKeys only working for 1 key
If the fast path for 1 key lookup is not taken because there are > 1 keys, the `keyIndexDict` is never allocated a value due to a logic bug. Objective-C then conspired to hide this problem from us thanks to messaging of nil.
2018-03-08 14:45:54 +00:00
Matthew Chen 373f0d4de7 Clean up ahead of PR. 2018-01-25 10:56:59 -05:00
Matthew Chen 3ed77a8f38 Clean up ahead of PR. 2018-01-25 10:43:33 -05:00
Matthew Chen fcc56870be Clean up ahead of PR. 2018-01-25 10:22:08 -05:00
Matthew Chen a57b0c1adb Add database conversion class. 2018-01-24 17:10:59 -05:00
Matthew Chen 40ab4d2fe2 Add support for key specs. 2018-01-24 16:05:18 -05:00
Matthew Chen 302a1c86e4 Fix tests broken on device. 2018-01-24 10:00:42 -05:00
Rupert Daniel 1aac5034f8 Pass the database transaction as a parameter to FTS extension handler
blocks.
2018-01-24 11:21:45 +00:00
Matthew Chen 9ef73cbc91 Clean up ahead of PR. 2018-01-23 17:11:40 -05:00
Matthew Chen 27019b5260 Clean up ahead of PR. 2018-01-23 16:57:10 -05:00
Matthew Chen 91cb9f50c1 Modify YapDatabase to read converted database. 2018-01-23 16:40:35 -05:00
Matthew Chen 3941d566a6 Modify YapDatabase to read converted database. 2018-01-23 09:49:16 -05:00
Matthew Chen 72e05df4cd Support unencrypted headers and manual salts. 2018-01-19 18:15:55 -05:00
Robbie Hanson 6dce343afb Bug fix for issue #433 - Initialisers are marked non-nullable in header, but can return nil 2018-01-02 13:10:47 -05:00
Robbie Hanson 65cb53830f Bug fix for issue #437 - Possible deadlock in [YapDatabaseConnection dealloc] 2018-01-02 12:57:50 -05:00
Robbie Hanson cc73216ebf
Merge pull request #435 from ksuther/fts-upgrade
Fixed FTS extension repeatedly reindexing
2018-01-02 12:34:24 -05:00
Robbie Hanson f0016bcc0a
Merge pull request #438 from ksuther/remove-crossprocess-logs
Adjusted logging in CrossProcessNotification extension
2018-01-02 12:32:04 -05:00
Robbie Hanson 8714d467ef Decreasing default log level for YDBActionManager. 2018-01-02 12:28:26 -05:00
Kent Sutherland 66dfd5d809 Adjusted logging in CrossProcessNotification extension
Remove NSLogging when creating and destroying the cross process notification extension.
Changed cross-process notification log to use YDBLog.
2017-12-23 14:44:24 -05:00
Kent Sutherland ae814eaa89 Fixed FTS extension repeatedly reindexing if the original database was created with the version of the extension that didn't save ftsVersion to the database. 2017-12-05 17:01:02 -06:00