scprovider

command
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Command scprovider serves the core's write encoder to the storage conformance suite (CONTRACT 3.10, the SC row): the suite's Storage is pi-durable's SqliteStorage for every read, and this process for commit and mintId. It speaks one JSON object per line on stdin and stdout:

{"id":1,"op":"open","path":"/x/store.sqlite"}     the file pi-durable already created (schema, metadata); cold-opens the store
{"id":2,"op":"mint"}                              -> {"id":2,"ok":<id>}
{"id":3,"op":"commit","writes":[StorageWrite...]} -> {"id":3,"ok":<seq>}
{"id":4,"op":"close"}                             checkpoints the WAL and exits

A failure answers {"id":n,"error":{"name":"Error","message":...}}, with the message SqliteStorage would throw.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL