mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Expose matching(_:) on TableRequest&FilteredRequest
This commit is contained in:
1 parent
bf73f0ded2
commit
4d558488c0
2 files changed
+4
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
extension QueryInterfaceRequest {
|
||||
extension TableRequest where Self: FilteredRequest {
|
||||
|
||||
// MARK: Full Text Search
|
||||
|
||||
@@ -11,7 +11,7 @@ extension QueryInterfaceRequest {
|
||||
///
|
||||
/// If the search pattern is nil, the request does not match any
|
||||
/// database row.
|
||||
public func matching(_ pattern: FTS3Pattern?) -> QueryInterfaceRequest<T> {
|
||||
public func matching(_ pattern: FTS3Pattern?) -> Self {
|
||||
guard let pattern = pattern else {
|
||||
return none()
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#if SQLITE_ENABLE_FTS5
|
||||
extension QueryInterfaceRequest {
|
||||
extension TableRequest where Self: FilteredRequest {
|
||||
|
||||
// MARK: Full Text Search
|
||||
|
||||
@@ -16,7 +16,7 @@ extension QueryInterfaceRequest {
|
||||
/// The selection defaults to all columns. This default can be changed for
|
||||
/// all requests by the `TableRecord.databaseSelection` property, or
|
||||
/// for individual requests with the `TableRecord.select` method.
|
||||
public func matching(_ pattern: FTS5Pattern?) -> QueryInterfaceRequest<T> {
|
||||
public func matching(_ pattern: FTS5Pattern?) -> Self {
|
||||
guard let pattern = pattern else {
|
||||
return none()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user