Skip to content
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

Rename sharding.Config.SourceDB => SourceSchema #130

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

Conversation

shuhaowu
Copy link
Contributor

@shuhaowu shuhaowu commented Sep 7, 2019

SourceDB and TargetDB on sharding.Config refers to the schema name of a database. SourceDB is also used on ghostferry.Ferry to point to a *sql.DB. Since the Ferry struct also embeds a Config struct (a questionable choice to begin with), this naming caused me significant confusion.

I'm not sure if this adds to more confusion, but I want to quickly raise this issue as this is not the first time I got confused by variable names using words such as: "schema", "db"/"database", "table", and "table schema".

`SourceDB` and `TargetDB` on `sharding.Config` refers to the schema name
of a database. `SourceDB` is also used on `ghostferry.Ferry` to point to
a `*sql.DB`. Since the `Ferry` struct also embeds a `Config` struct (a q
uestionable choice to begin with), this naming caused me significant
confusion.

I'm not sure if this adds to more confusion, but I want to quickly raise
this issue as this is not the first time I got confused by variable
names using words such as: "schema", "db"/"database", "table", and "table
schema".
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