Skip to content

strokedb 0.2.0: the bridge for studio v2 - #261

Merged
broisnees merged 2 commits into
nightlyfrom
feat/strokedb-0.2
Nov 15, 2026
Merged

broisnees merged 2 commits into
nightlyfrom
feat/strokedb-0.2

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

The CLI side of the new web studio (stroke-app/stroke-web). The app itself doesn't change, so this is labelled release:skip.

  • Tables with row counts. Postgres uses reltuples, falling back to pg_stat_user_tables.n_live_tup for tables never analyzed. MySQL uses table_rows. SQLite uses an exact count.
  • /structure: columns with defaults, indexes (primary and unique), and foreign keys.
  • /rows now takes a where clause.
  • Edits by primary key: /update, /insert, /delete, each in a transaction that refuses to change more than one row per key. Tables without a primary key stay read-only.
  • /info reports bridge and features, so the page can hide what an older CLI can't do.
  • Fixes found while testing: Postgres name arrays came back as {a,b} text; MariaDB reported a missing default as the string NULL; errors while building an edit were thrown immediately instead of rejecting the promise.

Tests: cli/ node --test 11 passed. That includes SQLite structure, WHERE filters, edits, and the more-than-one-row refusal. Smoke-tested against Postgres 16 and MariaDB 10.11, and end to end in Chromium against the new studio.

Not on npm yet: publishing 0.2.0 needs the owner's 2FA approval.

🤖 Generated with Claude Code

broisnees and others added 2 commits November 15, 2026 19:06
…counts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reltuples is -1 until a table is first analyzed; fall back to the live
count in pg_stat_user_tables so the studio sidebar shows a number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@broisnees broisnees added the release:skip Merge into nightly without a version bump (docs, CI, chores) label Nov 15, 2026
@broisnees
broisnees merged commit d6b2b28 into nightly Nov 15, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release:skip Merge into nightly without a version bump (docs, CI, chores)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant