Skip to content

Rename databaseName to databaseDriverName #1304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xOnah
Copy link

@0xOnah 0xOnah commented Aug 3, 2025

What

Rename parameter databaseName to databaseDriverName in NewWithInstance, NewWithDatabaseInstance functions and in the migrate object to clarify its purpose.

Why

The current name, databaseName, may confuse users into thinking it refers to the actual name of their database (e.g. "bank", "test_db"), when in reality it refers to the database driver name (e.g. "postgres", "mysql").

This change improves readability and aligns with the sourceName parameter, which correctly indicates that it's the name of the source driver.

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