Releases: vitaly-t/pg-promise
Releases · vitaly-t/pg-promise
v.0.4.8
- removed jasmine step from testing, as it is not really needed;
- added pgp.as.format to format a query with with simple variables, just to make it part of the automated testing;
- incremented the version;
- added tests to cover every aspect of psp.as.format functionality.
v.0.4.7
- Some comprehensive testing added;
- Tests revealed one bug, with converting text strings via
pgp.as.text
, which was fixed; - Extended documentation to describe how to run the tests.
The tests include just about everything that can be tested without using a database.
v.0.4.5
v.0.4.4
v.0.4.3
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.