Skip to content

Conversation

@RobbieMcKinstry
Copy link
Contributor

REFACTOR: Extract Table and related types to tern-ddl workspace crate

Creates a new workspace crate crates/ddl (tern-ddl) containing all
PostgreSQL DDL types used for schema representation:

  • Schema primitives: Oid, name types (SchemaName, TableName, etc.)
  • Table and TableKind
  • Column, GeneratedColumn, GeneratedStorage, IdentityKind
  • Constraint types (PrimaryKey, ForeignKey, Unique, Check, Exclusion)
  • Index, IndexColumn, SortOrder, NullsOrder
  • Shared types: SqlExpr, QualifiedName, TypeInfo, ForeignKeyAction, etc.
  • Helper macros for enum implementations

The main tern crate now depends on tern-ddl and re-exports these types
through db::model and db::schema modules to maintain API compatibility.

https://claude.ai/code/session_01Bq6CWwMrUxrQ5Zn9bh8Lwb

REFACTOR: Extract Table and related types to tern-ddl workspace crate

Creates a new workspace crate crates/ddl (tern-ddl) containing all
PostgreSQL DDL types used for schema representation:
- Schema primitives: Oid, name types (SchemaName, TableName, etc.)
- Table and TableKind
- Column, GeneratedColumn, GeneratedStorage, IdentityKind
- Constraint types (PrimaryKey, ForeignKey, Unique, Check, Exclusion)
- Index, IndexColumn, SortOrder, NullsOrder
- Shared types: SqlExpr, QualifiedName, TypeInfo, ForeignKeyAction, etc.
- Helper macros for enum implementations

The main tern crate now depends on tern-ddl and re-exports these types
through db::model and db::schema modules to maintain API compatibility.

https://claude.ai/code/session_01Bq6CWwMrUxrQ5Zn9bh8Lwb
@RobbieMcKinstry RobbieMcKinstry merged commit 74f47ef into trunk Jan 30, 2026
2 checks passed
@RobbieMcKinstry RobbieMcKinstry deleted the claude/extract-ddl-crate-MegqX branch January 30, 2026 02:25
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.

2 participants