Skip to content

Commit

Permalink
Deprecated trace API in order to cleanly remove it in SQift 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed Nov 30, 2018
1 parent 3c21c8d commit 9188833
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Connection/Functions/Trace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ extension Connection {
/// For more details, please refer to the [documentation](https://www.sqlite.org/c3ref/profile.html).
///
/// - Parameter closure: The closure called when SQLite internally calls step on a statement.
@available(*, deprecated: 3.3, message: "The `trace` API will be removed in SQift 4.0. Please use `traceEvent` instead.")
public func trace(_ closure: ((String) -> Void)?) {
guard let closure = closure else {
sqlite3_trace(handle, nil, nil)
Expand Down

0 comments on commit 9188833

Please sign in to comment.