diff --git a/GRDB/Core/DatabaseValue.swift b/GRDB/Core/DatabaseValue.swift index 6b615ae5f..765f8f59c 100644 --- a/GRDB/Core/DatabaseValue.swift +++ b/GRDB/Core/DatabaseValue.swift @@ -311,7 +311,6 @@ extension DatabaseValue : DatabaseValueConvertible { extension DatabaseValue : SQLExpressible { /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) - /// This property is an implementation detail: do not use it directly. public var sqlExpression: SQLExpression { return self } @@ -319,6 +318,7 @@ extension DatabaseValue : SQLExpressible { /// DatabaseValue adopts SQLExpression. extension DatabaseValue : SQLExpression { + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) public func expressionSQL(_ arguments: inout StatementArguments?) -> String { // fast path for NULL if isNull { @@ -335,6 +335,7 @@ extension DatabaseValue : SQLExpression { } } + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) public var negated: SQLExpression { switch storage { case .null: diff --git a/GRDB/Core/DatabaseValueConvertible.swift b/GRDB/Core/DatabaseValueConvertible.swift index fdd2aca7e..545274097 100644 --- a/GRDB/Core/DatabaseValueConvertible.swift +++ b/GRDB/Core/DatabaseValueConvertible.swift @@ -28,7 +28,6 @@ public protocol DatabaseValueConvertible : SQLExpressible { extension DatabaseValueConvertible { /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) - /// This property is an implementation detail: do not use it directly. public var sqlExpression: SQLExpression { return databaseValue } diff --git a/GRDB/Core/RowAdapter.swift b/GRDB/Core/RowAdapter.swift index aafd7c053..a91e39e34 100644 --- a/GRDB/Core/RowAdapter.swift +++ b/GRDB/Core/RowAdapter.swift @@ -91,10 +91,14 @@ extension LayoutedColumnMapping : RowLayout { /// GRBD ships with a ready-made type that adopts this protocol: /// LayoutedColumnMapping. public protocol LayoutedRowAdapter { + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) + /// /// A LayoutedColumnMapping that defines how to map a column name to a /// column in a base row. var mapping: LayoutedColumnMapping { get } + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) + /// /// The layouted row adapters for each scope. var scopes: [String: LayoutedRowAdapter] { get } } diff --git a/GRDB/QueryInterface/Column.swift b/GRDB/QueryInterface/Column.swift index ff73250d1..9aa338943 100644 --- a/GRDB/QueryInterface/Column.swift +++ b/GRDB/QueryInterface/Column.swift @@ -17,7 +17,6 @@ public struct Column { extension Column : SQLExpression { /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) - /// This method is an implementation detail: do not use it directly. public func expressionSQL(_ arguments: inout StatementArguments?) -> String { return name.quotedDatabaseIdentifier } diff --git a/GRDB/QueryInterface/SQLCollatedExpression.swift b/GRDB/QueryInterface/SQLCollatedExpression.swift index 3df393021..65c1f2229 100644 --- a/GRDB/QueryInterface/SQLCollatedExpression.swift +++ b/GRDB/QueryInterface/SQLCollatedExpression.swift @@ -50,15 +50,12 @@ public struct SQLCollatedExpression { extension SQLCollatedExpression : SQLOrderingTerm { - /// Returns self.desc + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) public var reversed: SQLOrderingTerm { return desc } - /// This method is an implementation detail of the query interface. - /// Do not use it directly. - /// - /// See https://github.com/groue/GRDB.swift/#the-query-interface + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) public func orderingTermSQL(_ arguments: inout StatementArguments?) -> String { return sqlExpression.orderingTermSQL(&arguments) } diff --git a/GRDB/QueryInterface/SQLCollection.swift b/GRDB/QueryInterface/SQLCollection.swift index 2ce41f360..1b1d35f92 100644 --- a/GRDB/QueryInterface/SQLCollection.swift +++ b/GRDB/QueryInterface/SQLCollection.swift @@ -42,7 +42,6 @@ public protocol SQLCollection { extension SQLCollection { /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) - /// This method is an implementation detail: do not use it directly. /// /// Returns a SQLExpressionContains which applies the `IN` operator: /// diff --git a/GRDB/QueryInterface/SQLSelectable+QueryInterface.swift b/GRDB/QueryInterface/SQLSelectable+QueryInterface.swift index 55d61ed91..537bebf53 100644 --- a/GRDB/QueryInterface/SQLSelectable+QueryInterface.swift +++ b/GRDB/QueryInterface/SQLSelectable+QueryInterface.swift @@ -9,7 +9,7 @@ struct SQLStar : SQLSelectable { return "*" } - public func count(distinct: Bool) -> SQLCount? { + func count(distinct: Bool) -> SQLCount? { // SELECT DISTINCT * FROM tableName ... guard !distinct else { return nil @@ -42,7 +42,7 @@ struct SQLAliasedExpression : SQLSelectable { return expression.countedSQL(&arguments) } - public func count(distinct: Bool) -> SQLCount? { + func count(distinct: Bool) -> SQLCount? { return expression.count(distinct: distinct) } } diff --git a/GRDB/Utils/Utils.swift b/GRDB/Utils/Utils.swift index 20bb98446..2f7c7addf 100644 --- a/GRDB/Utils/Utils.swift +++ b/GRDB/Utils/Utils.swift @@ -24,13 +24,19 @@ public func databaseQuestionMarks(count: Int) -> String { return Array(repeating: "?", count: count).joined(separator: ",") } +/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) +/// /// This protocol is an implementation detail of GRDB. Don't use it. public protocol _OptionalProtocol { + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) associatedtype _Wrapped } +/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) +/// /// This conformance is an implementation detail of GRDB. Don't rely on it. extension Optional : _OptionalProtocol { + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) public typealias _Wrapped = Wrapped }