paulovieira / rede-convergir-3

3 stars 3 forks source link

db hint #14

Open vitaly-t opened 8 years ago

vitaly-t commented 8 years ago

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