Closed vitaly-t closed 8 years ago
No I think you're misunderstanding this parameter. In this module, all of the queries are run by the module itself, not by the user (to create/read/update/delete the session table). These queries are normally passed into pg-promise, but if the user passes a function here, the queries will be passed into the function instead. This allows them to redirect the queries into their own database driver.
Ok, if you think so. It was just confusing that only "$1, $2" was mentioned, because if it ends up inside pg-promise query formatting, it can be a lot more than that, as explained earlier.
It's up to you. I can close the issue.
As I understand, you are passing
(query, values)
into pg-promise. And if so, you should just redirect your documentation to pg-promise, because the latter supports a very wide syntax for bothquery
andvalues
:query
can be:values
can be:etc...
Basically, there is really a lot to the pair of
(query, values)
of what it can represent. As I stated earlier, you should just redirect your documentation in this case, not try to re-document anything, as it would be a lot.