Skip to content

Add CockroachDB engine support - #2

Merged
aa8y merged 5 commits into
masterfrom
add-cockroachdb
Jun 21, 2026
Merged

Add CockroachDB engine support#2
aa8y merged 5 commits into
masterfrom
add-cockroachdb

Conversation

@aa8y

@aa8y aa8y commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a new cockroach engine that ships open datasets onto CockroachDB, following the existing Postgres/MySQL ETL pattern.
  • Multi-stage cockroach/Dockerfile: an Alpine builder extracts/transforms/concatenates the dataset SQL into /docker-entrypoint-initdb.d/<dataset>.sql; the final image is cockroachdb/cockroach with COCKROACH_DATABASE set, started via start-single-node --insecure so the init scripts auto-load.
  • Wire up the cockroach context in manifest.yml with chinook, northwind, and latest tags (PostgreSQL-dialect dumps from Yugabyte's sample sets).
  • Add integration smoke tests (test/integration/run-cockroach.sh), structure-test configs (test/config/cockroach/), and expected row-count fixtures (test/expected/cockroach/).
  • Document the CockroachDB images in the README.

Test plan

  • dave build -c cockroach builds chinook/northwind/latest
  • dave structure-test -c cockroach passes
  • dave test -c cockroach passes (chinook 11 tables, northwind 14 tables)
  • Full unscoped dave build && dave structure-test && dave test passes (exit 0)
  • CI green on linux/amd64 + linux/arm64

Made with Cursor

aa8y and others added 5 commits June 20, 2026 15:51
Introduce a cockroach/ build context mirroring the postgres ETL Dockerfile.
CockroachDB is PostgreSQL-compatible and the official image's entrypoint runs
/docker-entrypoint-initdb.d/*.sql against COCKROACH_DATABASE under
start-single-node, so the dataset pattern carries over: the builder assembles a
per-dataset init script (no CREATE DATABASE header needed) and the final stage
ships it on cockroachdb/cockroach, started in insecure mode for simple access.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add a cockroach: context (repository aa8y/cockroach-dataset) with CockroachDB
build/test/push templates and chinook/northwind/latest tags sourced from the
Yugabyte PostgreSQL-dialect dumps. latest tracks chinook.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add test/integration/run-cockroach.sh (boots the image, waits for the init
scripts to finish via the entrypoint log marker, then asserts the base-table
set and per-table count(*) via `cockroach sql --insecure`), the cockroach
structure-test configs, and the chinook/northwind expected-count fixtures.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add CockroachDB to the Databases list, a CockroachDB images section (datasets,
tags, and `cockroach sql --insecure` usage), and note it under Future Work.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

; Conflicts:
;	README.md
;	manifest.yml
@aa8y
aa8y merged commit 235bfdb into master Jun 21, 2026
7 of 8 checks passed
@aa8y
aa8y deleted the add-cockroachdb branch June 22, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant