Put encryption behind an opt in (runtime) flag

This commit is contained in:
Avinash Sajjanshetty
2025-09-30 18:07:14 +05:30
parent 35b584f050
commit c8111f9555
8 changed files with 76 additions and 16 deletions

View File

@@ -317,7 +317,7 @@ impl Drop for Connection {
#[allow(clippy::arc_with_non_send_sync)]
#[pyfunction(signature = (path))]
pub fn connect(path: &str) -> Result<Connection> {
match turso_core::Connection::from_uri(path, true, false, false, false) {
match turso_core::Connection::from_uri(path, true, false, false, false, false) {
Ok((io, conn)) => Ok(Connection { conn, _io: io }),
Err(e) => Err(PyErr::new::<ProgrammingError, _>(format!(
"Failed to create connection: {e:?}"