Full text and records

This commit is contained in:
Gwendal Roué committed 2016-10-08 10:03:19 +02:00
1 parent 2bc8722049
commit 07c2973459
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ Release Notes
**New**
- `TableMapping.selectsRowID`: this optional static property allows records to fetch their hidden rowID column by default:
- `TableMapping.selectsRowID`: this optional static property allows records to fetch their hidden rowID column by default ([documentation](https://github.com/groue/GRDB.swift/tree/FTS#the-implicit-rowid-primary-key)):
```swift
// SELECT *, rowid FROM books
+4
View File
@@ -3278,6 +3278,10 @@ let books = Book.matching(pattern).fetchAll(db)
GRDB does not provide any ranking for FTS3 and FTS4. See SQLite's [Search Application Tips](https://www.sqlite.org/fts3.html#appendix_a) if you really need it.
- **Full-Text Records**
You can define [record](#records) types around the full-text virtual tables. Since these tables don't have any explicit primary key, you'll need an [extra setup](#the-implicit-rowid-primary-key).
- **[Unicode Full-Text Gotchas](#unicode-full-text-gotchas)**
Unicorns don't exist.