mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 00:24:21 +01:00
18 lines
552 B
Bash
Executable File
18 lines
552 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
|
|
EXPERIMENTAL_FLAGS="--experimental-indexes"
|
|
|
|
# if RUST_LOG is non-empty, enable tracing output
|
|
if [ -n "$RUST_LOG" ]; then
|
|
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
|
|
else
|
|
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
|
fi
|