Forge
markdownf8555a15
1# witdb-bridge (.NET CLI)
2
3JSON NDJSON subprocess bridge for pywitdb MVP (ADR-0001, ADR-0002).
4
5Build:
6
7```bash
8dotnet build bridge/WitDbBridge/WitDbBridge.csproj -c Release
9```
10
11Python resolves `bridge/WitDbBridge/bin/Release/net10.0/witdb-bridge` (or `WITDB_BRIDGE_PATH`).
12
13Protocol: one JSON object per line on stdin/stdout; `key`/`value` are base64 bytes.
14
15SQL (ADR-0004): after `open`, `sql_exec` / `sql_query` / `sql_commit` / `sql_rollback` via `WitSqlEngine` (`OutWit.Database` ref). Positional `?` in SQL → `@p0`, `@p1` when `params` is a JSON array.
16
View only · write via MCP/CIDE