knex-hooks icon indicating copy to clipboard operation
knex-hooks copied to clipboard

Before/after insert/update/select/delete hooks for Knex.js

Results 10 knex-hooks issues
Sort by recently updated
recently updated
newest added

This is very small commit to keep repository upto date with latest version of knex.

Is there a plan to support knex 0.21.x?

After upgrading our knex to 0.14.0 from 0.13.x, the following error occurred: ``` Error: Cannot find module 'knex/lib/query/builder' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18)...

The hook is run when fetching a single row (eg with `.first()`) but it's not called when you expect an array of results. knex: 0.21.12 knex-hooks: 0.0.9

When I try to iterate over params.result, it does not work. ```javascript params.result.forEach(row => { console.log(row) }) ``` It throws this error: `UnhandledPromiseRejectionWarning: TypeError: params.result.forEach is not a function` I'm...

I'm trying to install and use this hooks on a Directus (v9 - the node version) project. Can't get it to load properly. I'm following the steps and import knex-hooks...

Hi, I'm trying to apply special formats, by hooks but I din't see how to deal with wrapped. **The wrapping** ```js .andWhere(qb => qb .whereBetween('startDate', [start, end]) .orWhereBetween('endDate', [start, end])...

Bumps [eslint](https://github.com/eslint/eslint) from 3.19.0 to 6.8.0. Release notes Sourced from eslint's releases. v6.8.0 c5c7086 Fix: ignore aligning single line in key-spacing (fixes #11414) (#12652) (YeonJuan) 9986d9e Chore: add object option...

dependencies

It does not appear that hooks which are applied to the 'select' operation are being applied to results obtained using the first() knex query, even though first() is essesntially a...

Hi, I wanted to add a couple of hooks to one of my tables that would substitute a [hashid](http://hashids.org/) in place of the numerical id automatically. It doesn't yet seem...