-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(zero-pg): implement makeSchemaQuery
to run queries on the server
#3818
base: mlaw/async-run
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
queryProvider = makeSchemaQuery(schema); | ||
}); | ||
|
||
test('select', async () => { |
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.
this is just to test the plumbing. Tests of query forms (related/where/exists/etc.) are in z2s/test/chinook
6a812d1
to
c06b42f
Compare
|
Branch | mlaw/zero-pg5 |
Testbed | localhost |
Click to view all benchmark results
Benchmark | File Size | Benchmark Result kilobytes (KB) (Result Δ%) | Upper Boundary kilobytes (KB) (Limit %) |
---|---|---|---|
zero-package.tgz | 📈 view plot 🚷 view threshold | 961.26(0.00%)Baseline: 961.26 | 980.49 (98.04%) |
zero.js | 📈 view plot 🚷 view threshold | 180.39(0.00%)Baseline: 180.39 | 184.00 (98.04%) |
zero.js.br | 📈 view plot 🚷 view threshold | 50.10(0.00%)Baseline: 50.10 | 51.11 (98.04%) |
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
Same concern here with Proxy.
} | ||
|
||
async run(): Promise<HumanReadable<TReturn>> { | ||
const sqlQuery = formatPg(compile(this._completeAst(), this.format)); |
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.
Should we cache this so we do not have to recompute it?
if (Array.isArray(result)) { | ||
return result as HumanReadable<TReturn>; | ||
} | ||
return [...result] as HumanReadable<TReturn>; |
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.
Is this correct? How does this fit with one()
?
No description provided.