mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Use FetchRequest instead of QueryInterfaceRequest where relevant
This commit is contained in:
1 parent
28a795eddb
commit
5fac4abc07
10 files changed
+125
-136
No files matched your search
@@ -5,6 +5,8 @@ public struct QueryInterfaceRequest<T> {
|
||||
let query: _SQLSelectQuery
|
||||
|
||||
/// Initializes a QueryInterfaceRequest based on table *tableName*.
|
||||
///
|
||||
/// It represents the SQL query `SELECT * FROM tableName`.
|
||||
public init(tableName: String) {
|
||||
self.init(query: _SQLSelectQuery(select: [_SQLResultColumn.Star(nil)], from: .Table(name: tableName, alias: nil)))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user