Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
bintrail
command
Command bintrail is the OSS binary.
|
Command bintrail is the OSS binary. |
|
bintrail-console
command
Command bintrail-console serves the read-only Bintrail web console as a standalone binary, decoupled from the core `bintrail` CLI.
|
Command bintrail-console serves the read-only Bintrail web console as a standalone binary, decoupled from the core `bintrail` CLI. |
|
bintrail-mcp
command
Bridge mode (--connect): a stdio ↔ Streamable-HTTP proxy.
|
Bridge mode (--connect): a stdio ↔ Streamable-HTTP proxy. |
|
bintrail-pg
command
Command bintrail-pg is the PostgreSQL-source sibling of the core bintrail binary.
|
Command bintrail-pg is the PostgreSQL-source sibling of the core bintrail binary. |
|
mcp-gateway
command
mcp-gateway is an authentication and routing gateway for bintrail-mcp.
|
mcp-gateway is an authentication and routing gateway for bintrail-mcp. |
|
Package consoleapp is the importable command layer of the bintrail-console binary — the console sibling of the cliapp seam.
|
Package consoleapp is the importable command layer of the bintrail-console binary — the console sibling of the cliapp seam. |
|
e2e
|
|
|
shim
Package shim_e2e holds the docker-compose-driven end-to-end test for `bintrail shim`.
|
Package shim_e2e holds the docker-compose-driven end-to-end test for `bintrail shim`. |
|
Package ext exposes the extension points that embedding distributions — builds that import cliapp and wrap the OSS core — use to inject behavior: an audit sink recording data-access operations, extra doctor checks, agent WebSocket commands, and daemon source jobs.
|
Package ext exposes the extension points that embedding distributions — builds that import cliapp and wrap the OSS core — use to inject behavior: an audit sink recording data-access operations, extra doctor checks, agent WebSocket commands, and daemon source jobs. |
|
Package indexquery exposes read-only programmatic access to the bintrail index — live MySQL partitions and Parquet archives merged — for tooling and embedding distributions that import the core as a module.
|
Package indexquery exposes read-only programmatic access to the bintrail index — live MySQL partitions and Parquet archives merged — for tooling and embedding distributions that import the core as a module. |
|
internal
|
|
|
agent
Package agent implements the outbound communication channel between the bintrail agent (running in customer infrastructure) and the dbtrail service.
|
Package agent implements the outbound communication channel between the bintrail agent (running in customer infrastructure) and the dbtrail service. |
|
archive
Package archive writes a binlog_events partition to a Parquet file before it is dropped.
|
Package archive writes a binlog_events partition to a Parquet file before it is dropped. |
|
baseline
Package baseline converts mydumper output into Parquet files, enabling full audit reconstruction when combined with binlog change events.
|
Package baseline converts mydumper output into Parquet files, enabling full audit reconstruction when combined with binlog change events. |
|
baselineintegrity
Package baselineintegrity provides at-rest integrity for baseline Parquet files (#636): a CRC-32C _MANIFEST sidecar written next to the _SUCCESS marker, validated on every local read path.
|
Package baselineintegrity provides at-rest integrity for baseline Parquet files (#636): a CRC-32C _MANIFEST sidecar written next to the _SUCCESS marker, validated on every local read path. |
|
buffer
Package buffer provides an in-memory event buffer for BYOS mode.
|
Package buffer provides an in-memory event buffer for BYOS mode. |
|
byos
Package byos implements the Bring Your Own Storage (BYOS) data separation layer.
|
Package byos implements the Bring Your Own Storage (BYOS) data separation layer. |
|
cascade
Package cascade reconstructs the side effects of an InnoDB foreign-key ON DELETE CASCADE (deleted child rows) or ON DELETE SET NULL (nulled child FKs) that InnoDB applied but never wrote to the binary log.
|
Package cascade reconstructs the side effects of an InnoDB foreign-key ON DELETE CASCADE (deleted child rows) or ON DELETE SET NULL (nulled child FKs) that InnoDB applied but never wrote to the binary log. |
|
cascaderecover
Package cascaderecover assembles the cascade-recovery SQL script (the documented preamble, the SET FOREIGN_KEY_CHECKS=0/1 wrapper, the CASCADE re-INSERTs, and the idempotent SET NULL restorations) from a synthesized cascade result.
|
Package cascaderecover assembles the cascade-recovery SQL script (the documented preamble, the SET FOREIGN_KEY_CHECKS=0/1 wrapper, the CASCADE re-INSERTs, and the idempotent SET NULL restorations) from a synthesized cascade result. |
|
cli
Package cli holds command-layer building blocks intended to be shared across bintrail binaries.
|
Package cli holds command-layer building blocks intended to be shared across bintrail binaries. |
|
cliutil
Package cliutil provides shared filter-parsing and output helpers used by both cmd/bintrail/ commands and cmd/bintrail-mcp/.
|
Package cliutil provides shared filter-parsing and output helpers used by both cmd/bintrail/ commands and cmd/bintrail-mcp/. |
|
consistency
Package consistency provides primitives that detect, with overwhelming probability, whether a Parquet snapshot diverges from the MySQL table it was taken from.
|
Package consistency provides primitives that detect, with overwhelming probability, whether a Parquet snapshot diverges from the MySQL table it was taken from. |
|
console
Package console serves an embedded, read-only, single-operator web UI over a bintrail index.
|
Package console serves an embedded, read-only, single-operator web UI over a bintrail index. |
|
duckdbtuning
Package duckdbtuning holds the shared DuckDB resource-tuning flags used by the offline query/recover/reconstruct/verify commands (#510/#511): the --ultrafast / --duckdb-threads / --duckdb-memory-limit flag set, the precedence resolution into a duckdbutil.Tuning, and the archive-fetcher adapter that carries that budget into parquetquery.
|
Package duckdbtuning holds the shared DuckDB resource-tuning flags used by the offline query/recover/reconstruct/verify commands (#510/#511): the --ultrafast / --duckdb-threads / --duckdb-memory-limit flag set, the precedence resolution into a duckdbutil.Tuning, and the archive-fetcher adapter that carries that budget into parquetquery. |
|
duckdbutil
Package duckdbutil holds small helpers shared by the DuckDB sessions bintrail opens (baseline reads, snapshot queries, S3 footer probes).
|
Package duckdbutil holds small helpers shared by the DuckDB sessions bintrail opens (baseline reads, snapshot queries, S3 footer probes). |
|
event
Package event holds the source-agnostic row-event type that flows from a capture backend into the indexer and the whole downstream value stack (query, recover, reconstruct, shim, console).
|
Package event holds the source-agnostic row-event type that flows from a capture backend into the indexer and the whole downstream value stack (query, recover, reconstruct, shim, console). |
|
indexer
Package indexer consumes parsed binlog events and batch-inserts them into the binlog_events table in the index MySQL database.
|
Package indexer consumes parsed binlog events and batch-inserts them into the binlog_events table in the index MySQL database. |
|
mcptools
Package mcptools implements the four read-only Bintrail MCP tools — query, recover, status, and list_schema_changes — decoupled from how the index connection is obtained.
|
Package mcptools implements the four read-only Bintrail MCP tools — query, recover, status, and list_schema_changes — decoupled from how the index connection is obtained. |
|
observe
Package observe provides shared observability setup for Bintrail: structured logging via log/slog and Prometheus metrics for the stream command.
|
Package observe provides shared observability setup for Bintrail: structured logging via log/slog and Prometheus metrics for the stream command. |
|
parquetquery
Package parquetquery implements a DuckDB-backed query engine for Parquet archive files.
|
Package parquetquery implements a DuckDB-backed query engine for Parquet archive files. |
|
parser
Package parser reads MySQL ROW-format binlog files and emits typed events.
|
Package parser reads MySQL ROW-format binlog files and emits typed events. |
|
pgbaseline
Package pgbaseline produces Parquet baseline snapshots directly from a live PostgreSQL source (#593 slice C) — the PG sibling of the mydumper→Parquet converter in internal/baseline, with no dump step: it COPYs each published table inside one REPEATABLE READ snapshot and streams the rows into internal/baseline.Writer.
|
Package pgbaseline produces Parquet baseline snapshots directly from a live PostgreSQL source (#593 slice C) — the PG sibling of the mydumper→Parquet converter in internal/baseline, with no dump step: it COPYs each published table inside one REPEATABLE READ snapshot and streams the rows into internal/baseline.Writer. |
|
pgcapture
Package pgcapture decodes a PostgreSQL logical-replication (pgoutput) stream into the source-neutral event.Event consumed by the indexer and the rest of bintrail's value stack — the PostgreSQL analog of the go-mysql binlog parser in internal/parser.
|
Package pgcapture decodes a PostgreSQL logical-replication (pgoutput) stream into the source-neutral event.Event consumed by the indexer and the rest of bintrail's value stack — the PostgreSQL analog of the go-mysql binlog parser in internal/parser. |
|
pgshim
Package pgshim is the PostgreSQL wire-protocol front-end for bintrail's time-travel engine (#1008).
|
Package pgshim is the PostgreSQL wire-protocol front-end for bintrail's time-travel engine (#1008). |
|
pgstreamrun
Package pgstreamrun is the PostgreSQL streaming CONSUMER: it drives the internal/pgcapture capturer (the producer) into the shared indexer, persisting a durable LSN checkpoint to stream_state.
|
Package pgstreamrun is the PostgreSQL streaming CONSUMER: it drives the internal/pgcapture capturer (the producer) into the shared indexer, persisting a durable LSN checkpoint to stream_state. |
|
query
Package query implements the binlog_events query engine — dynamic SQL construction from filter options and multi-format result rendering.
|
Package query implements the binlog_events query engine — dynamic SQL construction from filter options and multi-format result rendering. |
|
reconstruct
Package reconstruct implements row state reconstruction by combining baseline Parquet snapshots with indexed binlog change events.
|
Package reconstruct implements row state reconstruction by combining baseline Parquet snapshots with indexed binlog change events. |
|
recovery
Package recovery generates reversal SQL from indexed binlog events.
|
Package recovery generates reversal SQL from indexed binlog events. |
|
serverid
Package serverid manages persistent server identities for bintrail.
|
Package serverid manages persistent server identities for bintrail. |
|
shim
Package shim implements an in-process MySQL-protocol server that answers time-travel queries by translating them into bintrail's existing query engine.
|
Package shim implements an in-process MySQL-protocol server that answers time-travel queries by translating them into bintrail's existing query engine. |
|
status
Package status provides shared types and display helpers for the binlog index status.
|
Package status provides shared types and display helpers for the binlog index status. |
|
storage
Package storage defines an abstract storage backend interface for managing Parquet files and other binary objects.
|
Package storage defines an abstract storage backend interface for managing Parquet files and other binary objects. |
|
streamdeps
Package streamdeps wires the production helper functions into a streamrun.Deps — the host side of streamrun's dependency-injection seam.
|
Package streamdeps wires the production helper functions into a streamrun.Deps — the host side of streamrun's dependency-injection seam. |
|
telemetry
Package telemetry implements bintrail's usage telemetry: a metadata-only, spool-based reporter for command mix and error classes.
|
Package telemetry implements bintrail's usage telemetry: a metadata-only, spool-based reporter for command mix and error classes. |
|
testutil
Package testutil provides shared helpers for integration tests that require a live MySQL connection.
|
Package testutil provides shared helpers for integration tests that require a live MySQL connection. |
|
verify
Package verify reconstructs each table's state from baseline + binlog and compares its content fingerprint against the live source, proving that a recovery would reproduce the source.
|
Package verify reconstructs each table's state from baseline + binlog and compares its content fingerprint against the live source, proving that a recovery would reproduce the source. |
Click to show internal directories.
Click to hide internal directories.