Commit Graph
3061 Commits
Author SHA1 Message Date
Gwendal Roué 7dfa4bcdb5 FetchedRecordsController: restore default record comparator 2016-10-29 10:49:32 +02:00
Gwendal Roué df120ec4a3 FetchedRecordsController: default record comparator now compares rows 2016-10-29 07:25:56 +02:00
Gwendal Roué 6dfa6a3710 FetchedRecordsController.isSameRecord is an iOS-only tool 2016-10-28 19:42:02 +02:00
Gwendal Roué 7ae39a00cb Naming things is hard 2016-10-28 19:22:52 +02:00
Gwendal Roué 0cbcbe3e69 Documentation 2016-10-28 08:11:28 +02:00
Gwendal Roué c4dfd24782 CountableRange.contains(): turn 0..<10.contains(x) to "x >= 0 AND x < 10" instead of "x BETWEEN 0 AND 9" (and avoid Int ranges to mess with double values) 2016-10-21 09:14:19 +02:00
Gwendal Roué 9ae2de6dc1 DatabaseValue.negated: prefer 1 to NOT 0 2016-10-21 09:13:03 +02:00
Gwendal Roué 7058bb5e12 Have DatabaseError adopt CustomNSError 2016-10-18 05:49:12 +02:00
Gwendal Roué caf5ee7412 Fix the compareRecordsByPrimaryKey option of FetchedRecordsController when record has no primary key but has selectsRowID set to true 2016-10-17 20:17:37 +02:00
Gwendal Roué 00de9bbbc5 Database.create(virtualTable:using:) wraps the table creation and virtual module post actions in a save point. Fix failing test for virtual module that throws in its database(_:didCreate:using:) method. 2016-10-17 19:23:11 +02:00
Gwendal Roué 34b7cda2ec Fix failing test for FetchedRecordsController: when the request changes, we now do update the tracked tables and columns 2016-10-17 13:34:46 +02:00
Gwendal Roué 2fd3ded6e2 TableMapping.none() 2016-10-17 09:09:17 +02:00
Gwendal Roué cb6d727664 Column.rank 2016-10-17 08:12:30 +02:00
Gwendal Roué 12af387e50 FTS4: support for external content table synchronization 2016-10-16 09:52:58 +02:00
Gwendal Roué 55216be46b FTS5: support for external content table synchronization 2016-10-16 09:32:41 +02:00
Gwendal Roué 7630642c56 matching() and match() methods accept nil FTS patterns 2016-10-16 07:47:25 +02:00
Gwendal Roué 408ecda944 Add contentRowID to FTS5TableDefinition 2016-10-14 08:58:58 +02:00
Gwendal Roué 95844cd6c0 Validate FTS patterns with db.execute() instead of a fetch sequence since it achieves error detection with less code 2016-10-14 05:05:01 +02:00
Gwendal Roué b0e68366d4 Documentation 2016-10-12 07:58:19 +02:00
Gwendal Roué 088c37d1ea Documentation 2016-10-11 20:51:32 +02:00
Gwendal Roué 4454c6be73 FTS5Tokenizer.tokenize callback is not optional 2016-10-11 11:28:22 +02:00
Gwendal Roué 26bf91e1da Documentation 2016-10-11 08:52:03 +02:00
Gwendal Roué e56a4ed9e2 Documentation 2016-10-11 06:55:31 +02:00
Gwendal Roué 52ef16dba5 Documentation 2016-10-11 06:21:46 +02:00
Gwendal Roué 44b59eea58 Documentation 2016-10-10 20:54:35 +02:00
Gwendal Roué f8bf2f38d3 Documentation 2016-10-10 20:41:40 +02:00
Gwendal Roué 091854a6d0 Documentation 2016-10-10 20:30:05 +02:00
Gwendal Roué fd55aa61cf Documentation 2016-10-10 20:28:04 +02:00
Gwendal Roué 7bd014f9de Documentation 2016-10-10 20:17:02 +02:00
Gwendal Roué 793ef35c95 Documentation 2016-10-10 20:16:15 +02:00
Gwendal Roué d8eb8499ef Documentation 2016-10-10 20:14:53 +02:00
Gwendal Roué ad98339de7 Documentation 2016-10-10 19:53:06 +02:00
Gwendal Roué d121326382 Documentation 2016-10-10 19:06:17 +02:00
Gwendal Roué bd9e689885 Documentation 2016-10-10 19:05:36 +02:00
Gwendal Roué 79dcf6d63b Code cleanup 2016-10-10 18:54:25 +02:00
Gwendal Roué 3390a26588 Rename FTSXTokenizerRequest to FTSXTokenizerDescriptor 2016-10-10 18:33:32 +02:00
Gwendal Roué 93d1cd3ee7 Remove the FTS3TokenizerRequest public initializer 2016-10-10 18:31:56 +02:00
Gwendal Roué 4b3cfc5de1 FTS3 is not ready for Database.tokenize(string:with:). Only FTS5 is. 2016-10-10 18:17:39 +02:00
Gwendal Roué f9d38fdd69 Database.tokenize(string:with:) 2016-10-10 18:15:14 +02:00
Gwendal Roué 628c375b8c Documentation 2016-10-10 15:31:05 +02:00
Gwendal Roué 714c884732 Code cleanup 2016-10-10 14:43:23 +02:00
Gwendal Roué f6dffe9845 Rename FTSXTokenizerDefinition to FTSXTokenizerRequest 2016-10-10 13:58:05 +02:00
Gwendal Roué a28b3cc268 FTS5.api robustness 2016-10-10 13:51:58 +02:00
Gwendal Roué 388dd99986 Custom FTS5 tokenizer cleanup 2016-10-10 13:46:04 +02:00
Gwendal Roué 1081b6a1c0 Custom FTS5 tokenizer cleanup 2016-10-10 13:11:11 +02:00
Gwendal Roué 80d93b1fc9 FTS5WrapperTokenizer 2016-10-10 11:36:03 +02:00
Gwendal Roué 09a7865e7d Test the custom FTS5 tokenizer with a synonyms tokenizer 2016-10-10 08:46:56 +02:00
Gwendal Roué 2f9a399d18 Fix NFKC tokenizer so that it does not mangle token offsets inside pText (convert tokens to NFKC, not the base string) 2016-10-10 08:16:27 +02:00
Gwendal Roué f7c8bd6d1c FTS5TokenizeFlags 2016-10-09 22:15:11 +02:00
Gwendal Roué 35479575ec Tests for custom FTS5 tokenizer with DatabaseQueue and DatabasePool 2016-10-09 21:52:22 +02:00