We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm having a hard time figuring out how to get a pragma value out of SQLite using Fluent. Any pointers?
The text was updated successfully, but these errors were encountered:
@adamnemecek was this solved in Discord?
Sorry, something went wrong.
try await (req.db as! any SQLDatabase).raw("PRAGMA some_pragma_or_other").first()?.decode(column: "some_pragma_or_other", as: Int.self)
See also https://github.com/vapor/sqlite-kit/blob/main/Tests/SQLiteKitTests/SQLiteKitTests.swift#L92-L93
No branches or pull requests
I'm having a hard time figuring out how to get a pragma value out of SQLite using Fluent. Any pointers?
The text was updated successfully, but these errors were encountered: