Skip to content

Add convenience WithTableName provider option#985

Merged
mfridman merged 4 commits into
mainfrom
mf/gh-984
Sep 12, 2025
Merged

Add convenience WithTableName provider option#985
mfridman merged 4 commits into
mainfrom
mf/gh-984

Conversation

@mfridman

Copy link
Copy Markdown
Collaborator

Fix #984

I want to be able to do this:

provider, err = goose.NewProvider(
	goose.DialectSQLite3,
	db, 
	fsys, 
	goose.WithTableName("some_table"),
)

Make table name customization and custom stores mutually exclusive, without requiring users to go through the Store interface or pass custom dialects for simple table name changes.

@mfridman
mfridman merged commit ae5fcb9 into main Sep 12, 2025
4 checks passed
@mfridman
mfridman deleted the mf/gh-984 branch September 12, 2025 01:47
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.

Add WithTableName to goose provider

1 participant