Skip to content
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

Export the underlying SQLite library #756

Merged
merged 3 commits into from
Apr 12, 2020
Merged

Export the underlying SQLite library #756

merged 3 commits into from
Apr 12, 2020

Conversation

groue
Copy link
Owner

@groue groue commented Apr 12, 2020

This pull request exports the underlying SQLite library with GRDB.

This means that importing GRDB grants access to the SQLite C interface:

// BEFORE: GRDB 4
import CSQLite   // When GRDB is included with the Swift Package Manager
import SQLCipher // When GRDB is linked to SQLCipher
import SQLite3   // When GRDB is linked to System SQLite
let sqliteVersion = String(cString: sqlite3_libversion())

// NEW: GRDB 5
import GRDB
let sqliteVersion = String(cString: sqlite3_libversion())

This completes the goal of #747, which was to make users able to change their GRDB flavor without needing to change their code.

@groue groue added this to the GRDB 5 milestone Apr 12, 2020
@groue groue merged commit fc09fd6 into GRDB5 Apr 12, 2020
@groue groue deleted the dev/export-SQLite branch April 12, 2020 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant