Releases: vitaly-t/pg-promise
Releases · vitaly-t/pg-promise
v0.4.0
v.0.4.2
v.0.4.1
v.0.3.0
All queries now accept a flexible parameter formatting.
Examples:
db.many('select * from users where name like $1', 'tom');
db.one('select * from audit where entity=$1 and when>$2::timestamp', ['users', new Date()]);
There can be either one parameter or an array of parameters.
The version was upped to 0.3, because the function declaration had to change to:
// db.func(query, qrm, values)
db.func('select * from users where created > $1::timestamp', queryReqult.many, [new Date()]);
This change makes it consistent with parameters for db.query
There will be changes to the documentation to provide better examples.
v0.2.3
precise-results
- documentation updates, mostly to cover how Query Result is to be handled properly;
- changed Query Result so that none+many results in an empty array when no rows are returned.
friday-rush
- a small fix for calling functions;
- keywords update in the package
- minor documentation updates.
multi-connector
This version now supports working with multiple databases, which was an omission in previous versions.
This required a small breaking change to the way a new database is initialized - see in updated documentation.
rock-solid
A bit of code has been refactored, docs updated.