debugging by tursodatabase/turso
npx skills add https://github.com/tursodatabase/turso --skill debuggingTurso 旨在实现 SQLite 兼容性。当行为出现差异时:
EXPLAIN 查询EXPLAIN 查询# SQLite
sqlite3 :memory: "EXPLAIN SELECT 1 + 1;"
# Turso
cargo run --bin tursodb :memory: "EXPLAIN SELECT 1 + 1;"
cargo run --bin tursodb :memory: 'SELECT * FROM foo;'
cargo run --bin tursodb :memory: 'EXPLAIN SELECT * FROM foo;'
# 在测试期间追踪核心模块
RUST_LOG=none,turso_core=trace make test
# 输出到 testing/test.log
# 警告:每次测试运行可能产生数兆字节的日志
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
使用 ThreadSanitizer 进行压力测试:
rustup toolchain install nightly
rustup override set nightly
cargo run -Zbuild-std --target x86_64-unknown-linux-gnu \
-p turso_stress -- --vfs syscall --nr-threads 4 --nr-iterations 1000
使用种子复现 bug。注意:模拟器使用旧的 "limbo" 命名。
# 模拟器
RUST_LOG=limbo_sim=debug cargo run --bin limbo_sim -- -s <seed>
# Whopper (并发 DST)
SEED=1234 ./testing/concurrent-simulator/bin/run
对于 WAL 损坏和数据库完整性问题,请使用 scripts 中的损坏调试工具。
详细用法请参阅 references/CORRUPTION-TOOLS.md。
每周安装次数
401
代码仓库
GitHub 星标数
17.9K
首次出现
2026年1月28日
安全审计
安装于
claude-code312
github-copilot202
opencode138
codex137
gemini-cli136
cursor130
Turso aims for SQLite compatibility. When behavior differs:
1. EXPLAIN query in sqlite3
2. EXPLAIN query in tursodb
3. Compare bytecode
├─ Different → bug in code generation
└─ Same but results differ → bug in VM or storage layer
# SQLite
sqlite3 :memory: "EXPLAIN SELECT 1 + 1;"
# Turso
cargo run --bin tursodb :memory: "EXPLAIN SELECT 1 + 1;"
cargo run --bin tursodb :memory: 'SELECT * FROM foo;'
cargo run --bin tursodb :memory: 'EXPLAIN SELECT * FROM foo;'
# Trace core during tests
RUST_LOG=none,turso_core=trace make test
# Output goes to testing/test.log
# Warning: can be megabytes per test run
Use stress tests with ThreadSanitizer:
rustup toolchain install nightly
rustup override set nightly
cargo run -Zbuild-std --target x86_64-unknown-linux-gnu \
-p turso_stress -- --vfs syscall --nr-threads 4 --nr-iterations 1000
Reproduce bugs with seed. Note: simulator uses legacy "limbo" naming.
# Simulator
RUST_LOG=limbo_sim=debug cargo run --bin limbo_sim -- -s <seed>
# Whopper (concurrent DST)
SEED=1234 ./testing/concurrent-simulator/bin/run
For WAL corruption and database integrity issues, use the corruption debug tools in scripts.
See references/CORRUPTION-TOOLS.md for detailed usage.
Weekly Installs
401
Repository
GitHub Stars
17.9K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code312
github-copilot202
opencode138
codex137
gemini-cli136
cursor130
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
68,100 周安装