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.
Click to show internal directories.
Click to hide internal directories.