-
Notifications
You must be signed in to change notification settings - Fork 36
Support source generation for local connectors #436
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -406,7 +406,7 @@ public Builder<T> imports(String importStatements) { | |||
| if (this.imports == null) { | ||||
| this.imports = new HashMap<>(); | ||||
| } | ||||
| String[] importList = importStatements.split(";"); | ||||
| String[] importList = importStatements.split(","); | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Won't this be sufficient? Do we have to remove the imports from each property?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have done that in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don’t understand why we’re sacrificing reusability to special-case the new connection builder. Why aren’t these changes applicable to action calls?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you suggest to do it here? Line 183 in ffb8175
|
||||
| for (String importStatement : importList) { | ||||
| if (importStatement.trim().isEmpty()) { | ||||
| continue; | ||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -282,9 +282,6 @@ | |
| "selected": false | ||
| } | ||
| ], | ||
| "imports": { | ||
| "sql": "ballerina/sql" | ||
| }, | ||
| "defaultValue": "()" | ||
| }, | ||
| "type": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,9 +256,6 @@ | |
| "selected": false | ||
| } | ||
| ], | ||
| "imports": { | ||
| "sql": "ballerina/sql" | ||
| }, | ||
|
Comment on lines
-259
to
-261
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checked the new connection form, and we are getting the following diagnostics when this is removed:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you getting this when adding the connectionPool argument to the connection initializer? |
||
| "defaultValue": "()" | ||
| }, | ||
| "type": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,9 +255,6 @@ | |
| "selected": false | ||
| } | ||
| ], | ||
| "imports": { | ||
| "sql": "ballerina/sql" | ||
| }, | ||
| "defaultValue": "()" | ||
| }, | ||
| "type": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,9 +255,6 @@ | |
| "selected": false | ||
| } | ||
| ], | ||
| "imports": { | ||
| "sql": "ballerina/sql" | ||
| }, | ||
| "defaultValue": "()" | ||
| }, | ||
| "type": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -171,9 +171,6 @@ | |
| "selected": false | ||
| } | ||
| ], | ||
| "imports": { | ||
| "sql": "ballerina/sql" | ||
| }, | ||
| "defaultValue": "()" | ||
| }, | ||
| "type": { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.