osstotalsoft/nodebb

Add simple global filter support for Knex

Closed this issue · 0 comments

One should be able to specify a global query filter providing the following info:

  • a table predicate: tableName -> bool
  • some hooks: onSelect, onInsert, onUpdate, onDelete

The filter should call the appropriate hook for the coresponding sql statements