QueryInterfaceRequest

  • Returns a new QueryInterfaceRequest with a matching predicate added to the eventual set of already applied predicates.

    // SELECT * FROM books WHERE books MATCH '...'
    var request = Book.all()
    request = request.matching(pattern)
    

    If the search pattern is nil, the request does not match any database row.

    The selection defaults to all columns. This default can be changed for all requests by the TableMapping.databaseSelection property, or for individual requests with the TableMapping.select method.