docsproject-purpose.md
Edit / View on GitHubWhat Storq Does
Storq is a Python SDK for basic database-format inspection and experiments
with Storq's own storage format. Install it with pip and import it as
storq. C++ is used internally to build the native extension shipped in
supported wheels; users interact with Storq through Python.
What you can do with the Python SDK
| Area | Python functionality |
|---|---|
| SQLite format | Read-only basic format and header inspection |
| Storq format | Create and inspect an experimental Storq-format file |
| Records | Insert, read, update, and delete records in a Storq-format file |
| Workloads | Generate transaction descriptions and track independent expected outcomes |
| Workflows | Compose Python steps, execute workflows, and handle checkpoints/events |
| Tests | Run built-in Python test helpers; only page-integrity checking currently performs an inspection |
| Reports | Normalize results, build reports, export, compare, and keep report history |
| Benchmarks | Measure a caller-provided Python callback and compare/store results |
See the Python API reference for the exposed names and methods, and reliability features and limitations for functions that are not available through Python.
What Storq is not
- It is not a database server, SQL engine, command-line tool, or general repair utility.
- Inspection and diagnosis do not automatically repair SQLite or Storq files.
- The experimental Storq file and record APIs do not provide full transaction rollback or production database guarantees.
- Workflow helper names such as
analyze_pages()andverify_recovery()do not mean those operations are implemented in the Python SDK. - Benchmark callbacks execute caller-supplied work; Storq does not infer a workload or generate SQL for them.
Recommended usage
- Install a compatible wheel with pip and verify the native extension loaded.
- Use
storq.inspect_format()for read-only inspection of SQLite files. - Keep a separate verified backup before testing experimental file operations.
- Use only disposable test files for corruption and recovery experiments.
- Treat reported observations separately from inferred causes.
- Restore a verified backup when a test intentionally corrupts a file; Storq does not currently reconstruct corrupted bytes.
