Skip to content

Suggestion: Replace TableNamePrefix with ITableNameFormatter for Better Flexibility #267

@icanhasjonas

Description

@icanhasjonas

 Currently, the API uses a TableNamePrefix string to modify table names. This works, but is inflexible.

Proposal

Introduce an ITableNameFormatter interface to handle table name resolution.
This allows for:

  • Custom naming strategies (e.g., environment-based, hashing, localization)
  • Cleaner separation of concerns
  • Easier testing and mocking

Migration Path:

  • Mark TableNamePrefix as [Obsolete]
  • If TableNamePrefix is set, internally create a PrefixTableNameFormatter to maintain compatibility

This preserves backward compatibility while enabling greater extensibility.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions