Documentation and changelog

This commit is contained in:
Gwendal Roué committed 2018-01-26 08:44:18 +01:00
1 parent 1da85dff58
commit 830e6acb4f
2 files changed
+10

No files matched your search

+8
View File
@@ -1,6 +1,14 @@
Release Notes
=============
## Next Version
**New**
- Upgrade custom SQLite builds to [v3.22.0](http://www.sqlite.org/changes.html) (thanks to [@swiftlyfalling](https://github.com/swiftlyfalling/SQLiteLib)).
- The FTS5 full-text search engine has been enhanced with [initial token querie](https://sqlite.org/fts5.html#carrotq), and FTS5Pattern has gained a new initializer: `FTS5Pattern(matchingPrefixPhrase:)`
## 2.7.0
Released January 21, 2018 • [diff](https://github.com/groue/GRDB.swift/compare/v2.6.1...v2.7.0)
+2
View File
@@ -4399,6 +4399,8 @@ let pattern = FTS5Pattern(matchingAnyTokenIn: query)
let pattern = FTS5Pattern(matchingAllTokensIn: query)
// Matches documents that contain "SQLite database"
let pattern = FTS5Pattern(matchingPhrase: query)
// Matches documents that start with "SQLite database"
let pattern = FTS5Pattern(matchingPrefixPhrase: query)
```
They return nil when no pattern could be built from the input string: