mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
OSX 11 is OSX 10.16
This commit is contained in:
1 parent
ee2d8eae50
commit
e2816905bb
8 files changed
+13
-13
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ public struct FTS3: VirtualTableModule {
|
||||
/// Remove diacritics from Latin script characters. This
|
||||
/// option matches the raw "remove_diacritics=2" tokenizer argument,
|
||||
/// available from SQLite 3.27.0
|
||||
@available(OSX 11, iOS 14, tvOS 14, watchOS 7, *)
|
||||
@available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *)
|
||||
case remove
|
||||
#endif
|
||||
}
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ public struct FTS5: VirtualTableModule {
|
||||
/// Remove diacritics from Latin script characters. This
|
||||
/// option matches the raw "remove_diacritics=2" tokenizer argument,
|
||||
/// available from SQLite 3.27.0
|
||||
@available(OSX 11, iOS 14, tvOS 14, watchOS 7, *)
|
||||
@available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *)
|
||||
case remove
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public struct SQLCollatedExpression {
|
||||
/// Player.order(email.ascNullsLast)
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift/#the-query-interface
|
||||
@available(OSX 11, iOS 14, tvOS 14, watchOS 7, *)
|
||||
@available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *)
|
||||
public var ascNullsLast: SQLOrderingTerm {
|
||||
_SQLOrdering.ascNullsLast(sqlExpression)
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public struct SQLCollatedExpression {
|
||||
/// Player.order(email.descNullsFirst)
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift/#the-query-interface
|
||||
@available(OSX 11, iOS 14, tvOS 14, watchOS 7, *)
|
||||
@available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *)
|
||||
public var descNullsFirst: SQLOrderingTerm {
|
||||
_SQLOrdering.descNullsFirst(sqlExpression)
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ extension SQLSpecificExpressible {
|
||||
/// Returns a value that can be used as an argument to QueryInterfaceRequest.order()
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift/#the-query-interface
|
||||
@available(OSX 11, iOS 14, tvOS 14, watchOS 7, *)
|
||||
@available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *)
|
||||
public var ascNullsLast: SQLOrderingTerm {
|
||||
_SQLOrdering.ascNullsLast(sqlExpression)
|
||||
}
|
||||
@@ -43,7 +43,7 @@ extension SQLSpecificExpressible {
|
||||
/// Returns a value that can be used as an argument to QueryInterfaceRequest.order()
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift/#the-query-interface
|
||||
@available(OSX 11, iOS 14, tvOS 14, watchOS 7, *)
|
||||
@available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *)
|
||||
public var descNullsFirst: SQLOrderingTerm {
|
||||
_SQLOrdering.descNullsFirst(sqlExpression)
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class FTS3TableBuilderTests: GRDBTestCase {
|
||||
}
|
||||
#elseif !GRDBCIPHER
|
||||
func testUnicode61TokenizerDiacriticsRemove() throws {
|
||||
guard #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) else {
|
||||
guard #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) else {
|
||||
throw XCTSkip()
|
||||
}
|
||||
let dbQueue = try makeDatabaseQueue()
|
||||
|
||||
@@ -130,7 +130,7 @@ class FTS5TableBuilderTests: GRDBTestCase {
|
||||
}
|
||||
#elseif !GRDBCIPHER
|
||||
func testUnicode61TokenizerDiacriticsRemove() throws {
|
||||
guard #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) else {
|
||||
guard #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) else {
|
||||
throw XCTSkip()
|
||||
}
|
||||
|
||||
|
||||
@@ -745,7 +745,7 @@ class QueryInterfaceRequestTests: GRDBTestCase {
|
||||
sql(dbQueue, tableRequest.order(Col.age.descNullsFirst)),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"age\" DESC NULLS FIRST")
|
||||
#elseif !GRDBCIPHER
|
||||
if #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
if #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
XCTAssertEqual(
|
||||
sql(dbQueue, tableRequest.order(Col.age.ascNullsLast)),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"age\" ASC NULLS LAST")
|
||||
@@ -775,7 +775,7 @@ class QueryInterfaceRequestTests: GRDBTestCase {
|
||||
sql(dbQueue, tableRequest.order(Col.name.collating(.nocase).descNullsFirst)),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"name\" COLLATE NOCASE DESC NULLS FIRST")
|
||||
#elseif !GRDBCIPHER
|
||||
if #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
if #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
XCTAssertEqual(
|
||||
sql(dbQueue, tableRequest.order(Col.name.collating(.nocase).ascNullsLast)),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"name\" COLLATE NOCASE ASC NULLS LAST")
|
||||
@@ -824,7 +824,7 @@ class QueryInterfaceRequestTests: GRDBTestCase {
|
||||
sql(dbQueue, tableRequest.order(Col.age.ascNullsLast).reversed()),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"age\" DESC NULLS FIRST")
|
||||
#elseif !GRDBCIPHER
|
||||
if #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
if #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
XCTAssertEqual(
|
||||
sql(dbQueue, tableRequest.order(Col.age.descNullsFirst).reversed()),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"age\" ASC NULLS LAST")
|
||||
@@ -854,7 +854,7 @@ class QueryInterfaceRequestTests: GRDBTestCase {
|
||||
sql(dbQueue, tableRequest.order(Col.name.collating(.nocase).descNullsFirst).reversed()),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"name\" COLLATE NOCASE ASC NULLS LAST")
|
||||
#elseif !GRDBCIPHER
|
||||
if #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
if #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
XCTAssertEqual(
|
||||
sql(dbQueue, tableRequest.order(Col.name.collating(.nocase).ascNullsLast).reversed()),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"name\" COLLATE NOCASE DESC NULLS FIRST")
|
||||
|
||||
@@ -260,7 +260,7 @@ class TableRecordQueryInterfaceRequestTests: GRDBTestCase {
|
||||
sql(dbQueue, Reader.order(Col.age.descNullsFirst)),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"age\" DESC NULLS FIRST")
|
||||
#elseif !GRDBCIPHER
|
||||
if #available(OSX 11, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
if #available(OSX 10.16, iOS 14, tvOS 14, watchOS 7, *) {
|
||||
XCTAssertEqual(
|
||||
sql(dbQueue, Reader.order(Col.age.ascNullsLast)),
|
||||
"SELECT * FROM \"readers\" ORDER BY \"age\" ASC NULLS LAST")
|
||||
|
||||
Reference in new issue
Block a user