Support for NULLS FIRST and NULLS LAST

This commit is contained in:
Gwendal Roué committed 2019-12-07 12:31:58 +01:00
1 parent 2c9bef6440
commit 7208f53176
6 files changed
+126 -15

No files matched your search

@@ -16,6 +16,22 @@ extension SQLSpecificExpressible {
public var desc: SQLOrderingTerm {
return SQLOrdering.desc(sqlExpression)
}
#if GRDBCUSTOMSQLITE
/// Returns a value that can be used as an argument to QueryInterfaceRequest.order()
///
/// See https://github.com/groue/GRDB.swift/#the-query-interface
public var ascNullsLast: SQLOrderingTerm {
return SQLOrdering.ascNullsLast(sqlExpression)
}
/// Returns a value that can be used as an argument to QueryInterfaceRequest.order()
///
/// See https://github.com/groue/GRDB.swift/#the-query-interface
public var descNullsFirst: SQLOrderingTerm {
return SQLOrdering.descNullsFirst(sqlExpression)
}
#endif
}