-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 SQLITE_LIMIT_* Run-Time Limit #3522
Comments
There are two ways you could do this right now: You can pass the flags at compile time with an environment variable: https://github.com/rusqlite/rusqlite?tab=readme-ov-file#notes-on-building-rusqlite-and-libsqlite3-sys
You can put this in a [env]
LIBSQLITE3_FLAGS="-DSQLITE_MAX_LENGTH=123456789 -DSQLITE_MAX_COLUMN=100" Or you can call Which gives you direct access to the And then import I could see putting a nicer API on this, but I'd need to think about what that should look like and where it should go. I would probably put it on |
Thanks, I will use the |
Is your feature request related to a problem? Please describe.
I try to change the Sqlite Run-Time Limit , but found no way to do it in sqlx.
Describe the solution you'd like
It should able to set in
sqlite::SqliteConnectOptions
or other place like.limit(SQLITE_LIMIT_ATTACHED, 0)
Describe alternatives you've considered
I don't think I can call sqlite3_limit() directly.
Additional context
N/A
The text was updated successfully, but these errors were encountered: