mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Fix whopper to work with encryption flag
This commit is contained in:
@@ -15,7 +15,6 @@ for arg in "$@"; do
|
||||
FEATURES="--features checksum"
|
||||
CHECKSUM_ENABLED=true
|
||||
elif [[ "$arg" == "--enable-encryption" ]]; then
|
||||
FEATURES="--features encryption"
|
||||
ENCRYPTION_ENABLED=true
|
||||
ARGS+=("$arg")
|
||||
else
|
||||
|
||||
@@ -15,7 +15,6 @@ for arg in "$@"; do
|
||||
FEATURES="--features checksum"
|
||||
CHECKSUM_ENABLED=true
|
||||
elif [[ "$arg" == "--enable-encryption" ]]; then
|
||||
FEATURES="--features encryption"
|
||||
ENCRYPTION_ENABLED=true
|
||||
ARGS+=("$arg")
|
||||
else
|
||||
|
||||
@@ -141,7 +141,8 @@ fn main() -> anyhow::Result<()> {
|
||||
let db = {
|
||||
let opts = DatabaseOpts::new()
|
||||
.with_mvcc(args.enable_mvcc)
|
||||
.with_indexes(true);
|
||||
.with_indexes(true)
|
||||
.with_encryption(encryption_opts.is_some());
|
||||
|
||||
match Database::open_file_with_flags(
|
||||
io.clone(),
|
||||
|
||||
Reference in New Issue
Block a user