Skip to content

Commit 9188833

Browse files
committed
Deprecated trace API in order to cleanly remove it in SQift 4.0
1 parent 3c21c8d commit 9188833

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Connection/Functions/Trace.swift

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ extension Connection {
146146
/// For more details, please refer to the [documentation](https://www.sqlite.org/c3ref/profile.html).
147147
///
148148
/// - Parameter closure: The closure called when SQLite internally calls step on a statement.
149+
@available(*, deprecated: 3.3, message: "The `trace` API will be removed in SQift 4.0. Please use `traceEvent` instead.")
149150
public func trace(_ closure: ((String) -> Void)?) {
150151
guard let closure = closure else {
151152
sqlite3_trace(handle, nil, nil)

0 commit comments

Comments
 (0)