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

fix oceanbase #607

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

fix oceanbase #607

wants to merge 1 commit into from

Conversation

wayyoungboy
Copy link
Contributor

fix oceanbase
close #606

var mainTest = map[string]string{
"mainTest": `package main

import (
Copy link

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")
Copy link

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"
Copy link

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.

@chenhg5
Copy link
Collaborator

chenhg5 commented Apr 7, 2024

The code of the CLI tool adm has been moved to https://github.com/GoAdminGroup/adm. 😂

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.

[BUG]no oceanbase to select
3 participants