Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Teach sqldb.call() to use named arguments #3

Open
trombonekenny opened this issue Mar 25, 2018 · 0 comments
Open

Teach sqldb.call() to use named arguments #3

trombonekenny opened this issue Mar 25, 2018 · 0 comments

Comments

@trombonekenny
Copy link
Contributor

If passed params as an object, call() should use the named-argument syntax: https://www.postgresql.org/docs/10/static/sql-syntax-calling-funcs.html

The SQL will look like:

SELECT * FROM func(param1 => $1, param2 => $2)

From PrairieLearn/PrairieLearn#927

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant