Skip to content

Releases: holdfenytolvaj/pogi

bugfix release

11 Jun 01:45
Compare
Choose a tag to compare
bugfix release Pre-release
Pre-release

fix issue with deleteAndGet without options specified

bugfix release

06 Jun 06:18
Compare
Choose a tag to compare
bugfix release Pre-release
Pre-release

Fix default functions/tables for transactions

bugfix release

02 Jun 03:13
Compare
Choose a tag to compare
bugfix release Pre-release
Pre-release

fix #6
better sql parsing

bugfix release

20 Mar 02:21
Compare
Choose a tag to compare
bugfix release Pre-release
Pre-release
  • fix deleteAndGet
  • improve documentation

v2.2.0

18 Mar 06:24
Compare
Choose a tag to compare
v2.2.0 Pre-release
Pre-release
  • adding possibility to add a callback to the postProcessingResult. This will be called after every query on the result.
  • small bugfix on the configuration interface

bugfix release

13 Mar 08:44
Compare
Choose a tag to compare
bugfix release Pre-release
Pre-release

Fix missing import in PgUtils

experiment support for free text search

23 Jan 17:40
Compare
Choose a tag to compare
Pre-release
v2.1.0

experimental addition of free text search feature

Breaking change

12 Dec 03:48
Compare
Choose a tag to compare

In the first version of pogi the decision was to ignore the condition if the value was undefined in order for ease the use e.g.:

    let query = {
        powerfull: params.powerfull,
        wise: params.wise
    }
    await pgdb.users.find(query);

would return a result if e.g. the form.wise would be undefined. While this is comfortable
in many situation, it can cause critical issues e.g. for update

   await pgdb.users.update({id:user.id}, {password});

would update all users password, in case of the user.id is undefined. (Although this can be mitigated
with the updateOne function as well.) Still the best if no undefined value is allowed in the conditions.
Nevertheless to keep the compatibility, a parameter has been added to the QueryOptions and the ConnectionOptions: 'skipUndefined'. In the ConnectionOptions it can be set to all if needed (to keep the original behaviour). The value select would allow undefined values for selects/count queries only but would be strict for update/deletes.
none is the new default value, meaning undefined value considered as programming error and will throw an exception.
This setting can be specified on query level as well.

For more info see here, and here

add new convenient functions

02 Dec 07:33
Compare
Choose a tag to compare

It should be a feature release.. (will be next time)
added conversion for

Condition SQL
{'id ~~': ['1%','2%','3%']} "id" LIKE ANY('{1%,2%,3%}')
{'id !~~': ['1%','2%','3%']} "id" NOT LIKE ALL('{1%,2%,3%}')
{'id ~': ['^1','^2','^3']} "id" LIKE ANY('{^1,^2,^3}')
{'id !~': ['^1','^2','^3']} "id" NOT LIKE ALL('{^1,^2,^3}')

bugfix release

30 Nov 07:07
Compare
Choose a tag to compare

fix some error handling issue