Skip to content
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

db hint #14

Open
vitaly-t opened this issue Feb 2, 2016 · 0 comments
Open

db hint #14

vitaly-t opened this issue Feb 2, 2016 · 0 comments

Comments

@vitaly-t
Copy link

vitaly-t commented Feb 2, 2016

You do not need to redefine this type:

module.exports.queryResult = {
    one: 1,     // single-row result is expected;
    many: 2,    // multi-row result is expected;
    none: 4,    // no rows expected;
    any: 6      // (default) = many|none = any result.
};

Type queryResult is available as pgp.queryResult, in case you still want to export or just use it directly ;)

You can also see it in the API

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

No branches or pull requests

1 participant