Documentation

This commit is contained in:
Gwendal Roué committed 2016-12-12 08:41:18 +01:00
1 parent a68ed01003
commit fb7ace729c
1 file changed
+1 -3
+1 -3
View File
@@ -3289,14 +3289,12 @@ let maxScore = Player // Int?
.fetchOne(db)
```
Build `SQLRequest` bound to your record types:
Bind custom SQL requests to your record types:
```swift
extension Person {
static func someCustomRequest() -> AnyTypedRequest<Person> {
// Some custom SQL
let sqlRequest = SQLRequest("SELECT * FROM persons")
// Bind the raw request to the Person type
return sqlRequest.bound(to: Person.self)
}
}