-
Notifications
You must be signed in to change notification settings - Fork 1.9k
JavaScript: Add support for Google Cloud Spanner. #302
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
Conversation
asger-semmle
left a comment
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.
Don't know anything about spanner, but LGTM modulo one typo.
| } | ||
|
|
||
| /** | ||
| * A call to `Trnsaction.run` or `Database.runStream`. |
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.
Trnsaction -> Transaction
| * Gets the position of the query argument; default is zero, which can be overridden | ||
| * by subclasses. | ||
| */ | ||
| int getQueryArgumentPosition() { |
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.
It's not actually overridden anywhere and the surrounding module is private. It looks like you opted for overriding getAQueryArgument instead.
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.
Yes, this is a tiny bit of speculative generality.
cb9876b to
cd284b2
Compare
|
Typo amended. |
ghost
left a comment
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.
LGTM.
There are two docstrings that optionally could use a minor improvement.
| } | ||
|
|
||
| /** | ||
| * A call to `Transaction.run` or `Database.runStream`. |
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.
Make this docstring more abstract? It looks exhaustive, but the predicate also supports runUpdate...
Remove unused columns from tokeninfo tables
Do not extract local function containers as anonymous classes
A quick search didn't turn up any open-source projects that use it, so the model hasn't been tested on real-world code, only the unit tests.