limbo/scripts/turso-mvcc-sqlite3
2025-12-22 09:40:22 +02:00

18 lines
718 B
Bash
Executable file

#!/bin/bash
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Go to the project root (one level up from scripts/)
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
TURSODB="$PROJECT_ROOT/target/debug/tursodb"
# Add experimental features for testing
# Note: MVCC is enabled via PRAGMA journal_mode = 'experimental_mvcc'
EXPERIMENTAL_FLAGS="--experimental-views --experimental-strict --experimental-triggers --experimental-attach"
# if RUST_LOG is non-empty, enable tracing output
if [ -n "$RUST_LOG" ]; then
TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
else
TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
fi