-
-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite3_trace() deprecated in SQLite 3.14.0 #100
Comments
Yes @swiftlyfalling, thanks for the heads-up. I don't know yet what sqlite3_trace_v2 adds, though. |
Listen, @swiftlyfalling, I'd rather close this issue for now. It does not reveal any real issue, and solving it requires using swift availability checks in order to:
That's a lot of work for a benefit that I don't clearly see yet. Let's wait for a real feature request. |
Makes sense. It looks like even if SQLite is compiled with the flag |
Still shows up as a warning. |
Comments above still stand as well. |
Some news: this warning is emitted when GRDB uses the SQLite version that ships with iOS or macOS. That is because GRDB has to use the deprecated sqlite_trace() function in order to support iOS 8.0 and OSX 10.9. GRDBCustom (which uses custom SQLite builds) no longer emits this warning since ec65335. When GRDB upgrades its deployment targets to iOS 10.0 and OSX 10.12 (which won't happen until a long time), this warning will disappear. We can also hope that Apple enhances the sqlite3.h that ships with its SDKs. |
Hello groue, I hope you don't mind a comment relating to sqlite3_trace in this issue rather than a new one. Would it be possible to remove use of it? As GRDB now I believe requires a SQLite as well as iOS/macOS versions where such is deprecated and I think that also include sqlite3_trace2, it seems possible to remove. Such would allow for an additional SQLite compile option to remove deprecated features. I've tried such and the only complaint is for sqlite3_trace. The option is mentioned as a possible, though perhaps small or tiny, performance improvement. From what I recall, it may also be one of the recommended compile options. |
Hello @gennaios,
No. Some systems listed as supported do not have
This sentence is not clear. What do you want to avoid, and in which scenario, exactly? |
My mistake. It has been a while since I’ve looked at the compile-options. It was listed as recommended though not one that has any performance impact.
|
Maybe I miss something. When GRDB links to a custom SQLite builds, |
sqlite3_trace()
has been deprecated in SQLite 3.14.0, in lieu ofsqlite3_trace_v2()
This function is used in
Database.setupTrace()
inDatabase.swift
.Just a heads-up.
The text was updated successfully, but these errors were encountered: