Skip to content

Suggestion: Replace TableNamePrefix with ITableNameFormatter for Better Flexibility #267

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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