-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix oceanbase #607
base: master
Are you sure you want to change the base?
fix oceanbase #607
Conversation
var mainTest = map[string]string{ | ||
"mainTest": `package main | ||
|
||
import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the indentation in the generated code correct?
@@ -116,7 +116,7 @@ func buildProject(cfgFile string) { | |||
} | |||
if p.Driver == "" { | |||
p.Driver = singleSelect(getWord("choose a driver"), | |||
[]string{"mysql", "postgresql", "sqlite", "mssql"}, "mysql") | |||
[]string{"mysql", "postgresql", "sqlite", "mssql", "oceanbase"}, "mysql") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also add oceanbase after Import and initialize databas
(at line 172).
@@ -238,6 +238,9 @@ func GetCurrentDirectory() string { | |||
} | |||
|
|||
func installProjectTmpl(p Project, cfg *config.Config, cfgFile string, info *dbInfo) { | |||
if p.Driver == "oceanbase" { | |||
p.Driver = "OceanBase" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need comment for this replace. And maybe it's better to keep the Driver as oceanbase
to avoid mistakes to be introduced by others in the future.
The code of the CLI tool |
fix oceanbase
close #606