You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to use the sqlite-zstd-vfs extension (which adds transparent zstd vfs on sqlite database files) with SQLx + sqlite3.
However, since SqliteConnectOptions does not allow attaching custom parameter name/values, I cannot set these options :(.
SqliteConnectOptions::from_str() also fails due to the static checks for allowed parameter names SQLx seems to be doing while parsing the provided string.
Describe the solution you'd like
Would it be possible to add a SqliteConnectOptions::other_params(&[(&'static str, String)]) or something similar to support passing in arbitrary values to open call?
Describe alternatives you've considered
sqlite-zstd-vfs by default uses 1 thread for (de-)compression, and &threads=n in the url params is the only way to control it.
Additional context
Also, currently, extension load happens after the connection is established, so I have to open a connection twice like below (otherwise vfs=zstd is not recognized):
Is your feature request related to a problem? Please describe.
I'm trying to use the sqlite-zstd-vfs extension (which adds transparent zstd vfs on sqlite database files) with SQLx + sqlite3.
This plugin adds custom URL query parameters to the DB open call to tune compression-related parameters.
However, since SqliteConnectOptions does not allow attaching custom parameter name/values, I cannot set these options :(.
SqliteConnectOptions::from_str()
also fails due to the static checks for allowed parameter names SQLx seems to be doing while parsing the provided string.Describe the solution you'd like
Would it be possible to add a
SqliteConnectOptions::other_params(&[(&'static str, String)])
or something similar to support passing in arbitrary values to open call?Describe alternatives you've considered
sqlite-zstd-vfs by default uses 1 thread for (de-)compression, and
&threads=n
in the url params is the only way to control it.Additional context
Also, currently, extension load happens after the connection is established, so I have to open a connection twice like below (otherwise
vfs=zstd
is not recognized):(Would it be possible to load extension earlier so that we can do this in single connection?)
The text was updated successfully, but these errors were encountered: