Skip to content

Extend Nandi with yugabyte-specific instructions - #159

Draft
BBrannick wants to merge 20 commits into
masterfrom
yb-add-index
Draft

Extend Nandi with yugabyte-specific instructions#159
BBrannick wants to merge 20 commits into
masterfrom
yb-add-index

Conversation

@BBrannick

@BBrannick BBrannick commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

To support GC working with Yugabyte databases, add support to Nandi for generating migrations with yugabyte-specific syntax.

  • Separates renderers and migrations into Abstract classes, with implementations for Postgres and Yugabyte.
  • Yugabyte logic is encapsulated in a lib/nandi/yugabyte directory for separation/easier extraction.
  • Pulls instruction->validator mapping into the instruction class itself for better extensibility.
  • Adds yugabyte-specific add_index command to allow bucketing.

@BBrannick
BBrannick force-pushed the yb-add-index branch 2 times, most recently from e1a0f23 to 7f499a3 Compare August 14, 2026 12:12
BBrannick and others added 18 commits August 24, 2026 17:18
Specs out fixing the missing yugabyte_database config attribute and
adding validation so add_index_yb can only be used when the target
database is configured as YugabyteDB.
Add yugabyte_database as a configuration attribute to MultiDatabase::Database
to support YugaByte-specific database validation. The attribute defaults to
false when not configured and respects explicit true/false values. The existing
Config#yugabyte_database? method now correctly delegates to this attribute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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