Skip to content

Releases: vitaly-t/pg-promise

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.

precise-results

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

06 Mar 16:29
Compare
Choose a tag to compare
  • a small fix for calling functions;
  • keywords update in the package
  • minor documentation updates.

multi-connector

06 Mar 15:25
Compare
Choose a tag to compare

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

05 Mar 01:58
Compare
Choose a tag to compare

A bit of code has been refactored, docs updated.

renamed

05 Mar 11:48
Compare
Choose a tag to compare

GitHub account was renamed, and the package was updated accordingly.