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

feat:通过使用--table_prefix 给表名加前缀 #118

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

panol
Copy link
Contributor

@panol panol commented Mar 12, 2021

使得:
func (obj *_SymbolMgr) GetTableName() string {
return "symbol"
}
变成:
func (obj *_SymbolMgr) GetTableName() string {
return "tableprefix.symbol"
}
并在源头确定表名:tableprefix.symbol.
即真正执行mysql语句的时候,会按照tableprefix.symbol这个表名去执行。

使得:
func (obj *_SymbolMgr) GetTableName() string {
 return "symbol"
}
变成:
func (obj *_SymbolMgr) GetTableName() string {
 return "tableprefix.symbol"
}
并在源头确定表名:tableprefix.symbol.
即真正执行mysql语句的时候,会按照tableprefix.symbol这个表名去执行。
@xxjwxc
Copy link
Owner

xxjwxc commented Mar 12, 2021

thx

@xxjwxc xxjwxc merged commit 6a3e380 into xxjwxc:master Mar 12, 2021
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