Skip to content

Conversation

@stefanmb
Copy link

@stefanmb stefanmb commented Feb 5, 2026

Summary

  • Add a status command that shows the partitioning state of a table (intermediate existence, partition count, mirroring triggers, whether the original is partitioned)
  • Supports --json flag for machine-readable output

Test plan

  • Unit tests added for the status command and new table helpers

🤖 Generated with Claude Code

@stefanmb stefanmb force-pushed the stefanmb/status_cmd branch from a36c8ad to 44584ee Compare February 5, 2026 19:43
@stefanmb stefanmb changed the title Stefanmb/status cmd Add status command Feb 5, 2026
@stefanmb stefanmb force-pushed the stefanmb/status_cmd branch 2 times, most recently from 1263f32 to 9e56ae0 Compare February 5, 2026 19:53
/**
* Checks if this table is a partitioned table (relkind = 'p').
*/
async isPartitioned(connection: CommonQueryMethods): Promise<boolean> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though it adds more code my preference was to delegate the actual logic to Table in order to maintain separation of concerns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stefanmb stefanmb force-pushed the stefanmb/status_cmd branch from 9e56ae0 to 59ff248 Compare February 5, 2026 19:59
Copy link
Collaborator

@mthadley mthadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Left a few comments, but no blockers. Only waiting to approve because I think you'll want to merge in master and reconcile the changes from #16.

@stefanmb stefanmb merged commit 0fc6943 into master Feb 5, 2026
7 checks passed
@stefanmb stefanmb deleted the stefanmb/status_cmd branch February 5, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants