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

Delay initialize db object #1323

Merged
merged 8 commits into from
Dec 4, 2019

Conversation

Yancey1989
Copy link
Collaborator

@Yancey1989 Yancey1989 commented Dec 3, 2019

related PR #1318
This IR deferred initialization of DB object, so sqlflowserver don't need to initialize the DB object on Argo mode.

@Yancey1989 Yancey1989 changed the title [WIP]Delay initialize db object Delay initialize db object Dec 3, 2019
Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!!

@@ -105,15 +105,18 @@ func flagPassed(name ...string) bool {
return found
}

func runStmt(stmt string, isTerminal bool, modelDir string, db *sql.DB, ds string) error {
func runStmt(stmt string, isTerminal bool, modelDir string, ds string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ds -> datasource?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, will polish it in the next PR.

@Yancey1989 Yancey1989 merged commit c103f83 into sql-machine-learning:develop Dec 4, 2019
@Yancey1989 Yancey1989 deleted the later_init_db branch December 4, 2019 11:39
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