Storq logoStorq
docsproject-purpose.md
Edit / View on GitHub

What 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

AreaPython functionality
SQLite formatRead-only basic format and header inspection
Storq formatCreate and inspect an experimental Storq-format file
RecordsInsert, read, update, and delete records in a Storq-format file
WorkloadsGenerate transaction descriptions and track independent expected outcomes
WorkflowsCompose Python steps, execute workflows, and handle checkpoints/events
TestsRun built-in Python test helpers; only page-integrity checking currently performs an inspection
ReportsNormalize results, build reports, export, compare, and keep report history
BenchmarksMeasure 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() and verify_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.
  1. Install a compatible wheel with pip and verify the native extension loaded.
  2. Use storq.inspect_format() for read-only inspection of SQLite files.
  3. Keep a separate verified backup before testing experimental file operations.
  4. Use only disposable test files for corruption and recovery experiments.
  5. Treat reported observations separately from inferred causes.
  6. Restore a verified backup when a test intentionally corrupts a file; Storq does not currently reconstruct corrupted bytes.