Repository navigation
strokedb 0.2.0: the bridge for studio v2 - #261
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CLI side of the new web studio (stroke-app/stroke-web). The app itself doesn't change, so this is labelled
release:skip.reltuples, falling back topg_stat_user_tables.n_live_tupfor tables never analyzed. MySQL usestable_rows. SQLite uses an exact count./structure: columns with defaults, indexes (primary and unique), and foreign keys./rowsnow takes awhereclause./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./inforeportsbridgeandfeatures, so the page can hide what an older CLI can't do.{a,b}text; MariaDB reported a missing default as the stringNULL; errors while building an edit were thrown immediately instead of rejecting the promise.Tests:
cli/node --test11 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