Skip to content

Releases: vitaly-t/pg-promise

v.0.4.8

09 Mar 22:28
Compare
Choose a tag to compare
  • 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

09 Mar 18:01
Compare
Choose a tag to compare
  • 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

09 Mar 12:04
Compare
Choose a tag to compare
  • minor code refactoring;
  • fixing the documentation logo.

v.0.4.4

09 Mar 11:04
Compare
Choose a tag to compare

Logo fixing.

v.0.4.3

09 Mar 10:39
Compare
Choose a tag to compare
  • Minor updates in documentation
  • Improvements in error messages when query result doesn't match the expected result.

v0.4.0

08 Mar 21:10
Compare
Choose a tag to compare

This is a complete rewrite of the library, pointless listing the changes here. Instead, the document has been fully updated, which should now be used as the reference point.

v.0.4.2

08 Mar 22:14
Compare
Choose a tag to compare
  • Added support for queryResult.any
  • Updated documentation

v.0.4.1

08 Mar 21:39
Compare
Choose a tag to compare

Documentation updates, nothing more.

v.0.3.0

07 Mar 02:39
Compare
Choose a tag to compare

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

06 Mar 21:32
Compare
Choose a tag to compare
  • Fixed an issue with parameter formatting when calling a function;
  • Added pgp.as.csv(array) to convert an array of javascript values into a csv of values that can be passed directly to PostgreSQL.