mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
FTS documentation
This commit is contained in:
1 parent
119965a7fb
commit
ec34261674
1 file changed
+2
-2
@@ -3229,7 +3229,7 @@ let pattern = try FTS3Pattern(rawPattern: "sqlite AND database")
|
||||
let pattern = try FTS3Pattern(rawPattern: "AND")
|
||||
```
|
||||
|
||||
The three other initializers don't throw. They build a valid pattern from any string, including strings provided by users of your application. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
|
||||
The three other initializers don't throw. They build a valid pattern from any string, **including strings provided by users of your application**. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
|
||||
|
||||
```swift
|
||||
let query = "SQLite database"
|
||||
@@ -3421,7 +3421,7 @@ try db.fts5Pattern(rawPattern: "AND", forTable: "books")
|
||||
try db.fts5Pattern(rawPattern: "missing: sqlite", forTable: "books")
|
||||
```
|
||||
|
||||
The FTS5Pattern initializers don't throw. They build a valid pattern from any string, including strings provided by users of your application. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
|
||||
The FTS5Pattern initializers don't throw. They build a valid pattern from any string, **including strings provided by users of your application**. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
|
||||
|
||||
```swift
|
||||
let query = "SQLite database"
|
||||
|
||||
Reference in new issue
Block a user