Skip to content

Commit e673fb5

Browse files
committed
Add methods required for LIBSQL_EXTRA_URI_PARAMS
1 parent cfd4e1b commit e673fb5

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

libsql-ffi/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
494494
if cfg!(feature = "wasmtime-bindings") {
495495
config.define("LIBSQL_ENABLE_WASM_RUNTIME", "1");
496496
}
497-
config.define("LIBSQL_ENCRYPTION", "1");
497+
config.define("LIBSQL_EXTRA_URI_PARAMS", "1");
498498

499499
if cfg!(feature = "session") {
500500
config

libsql-ffi/bundled/SQLite3MultipleCiphers/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ set(SQLITE3MC_BASE_DEFINITIONS
124124
$<$<BOOL:${LIBSQL_ENABLE_WASM_RUNTIME}>:LIBSQL_ENABLE_WASM_RUNTIME=1>
125125
LIBSQL_EXTRA_PRAGMAS=1
126126
LIBSQL_CUSTOM_PAGER_CODEC=1
127-
LIBSQL_ENCRYPTION=1
127+
LIBSQL_EXTRA_URI_PARAMS=1
128128

129129
SQLITE_ENABLE_DBSTAT_VTAB=1
130130
SQLITE_ENABLE_DBPAGE_VTAB=1

libsql-ffi/bundled/SQLite3MultipleCiphers/src/cipher_config.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,3 +1167,11 @@ sqlite3mcHandleMainKey(sqlite3* db, const char* zPath)
11671167
}
11681168
return rc;
11691169
}
1170+
1171+
int libsql_handle_extra_attach_params(sqlite3* db, const char* zName, const char* zPath, sqlite3_value* pKey, char** zErrDyn) {
1172+
return sqlite3mcHandleAttachKey(db, zName, zPath, pKey, zErrDyn);
1173+
}
1174+
1175+
int libsql_handle_extra_uri_params(sqlite3 *db, const char *zOpen) {
1176+
return sqlite3mcHandleMainKey(db, zOpen);
1177+
}

0 commit comments

Comments
 (0)