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
Support for generated columns #1117
Conversation
I need to replicate these failures on my laptop. My hunch is that this is down to the version of SQLite available to Python. |
On my laptop:
In CI they are all SQLite: 3.22.0 |
Here's the problem: https://www.sqlite.org/changes.html#version_3_26_0
CI is running 3.22.0. |
sqlite3.enable_callback_tracebacks(True) | ||
|
||
|
||
def sqlite_version(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm nervous about the performance impact of this, since every time it is called it creates a new in-memory connection.
I'm going to cache this so that it only ever gets called a maximum of once for the lifetime of the server.
Codecov Report
@@ Coverage Diff @@
## main #1117 +/- ##
==========================================
- Coverage 91.48% 91.48% -0.01%
==========================================
Files 30 31 +1
Lines 3841 3852 +11
==========================================
+ Hits 3514 3524 +10
- Misses 327 328 +1
Continue to review full report at Codecov.
|
I just deployed this and its working great.
|
Refs #1116. My first attempt at this worked on my laptop but broke in CI, so I'm going to iterate on it in a pull request instead.