Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#143 and #175 are interrelated (they change the
/query
response format), so I decided to consolidate the fixes into 1 PR.Fixes #174
date
s,timestamp
s, andtimestamptz
s are no longer converted to JSDate
s.date
before:"2020-01-01T00:00:00.000Z"
date
after:"2020-01-01"
Fixes #143
Queries w/ multiple statements now return results from all statements instead of returning an empty list.
select 1 as a; select 2 as b
before:select 1 as a; select 2 as b
after:Fixes #175
Columns with the same alias now works, but this required a breaking change in the response format.
select 1 as x, 2 as x
before:select 1 as x, 2 as x
after:Additional notes
Previously, the response is a list of rows, but now that we support multi-statement queries, the response is a list of query results. In other words:
Type of response before:
Record<string, unknown>[]
Type of response after:
{ columns: string[]; rows: unknown[][] }[]