title: knex.js: incorporating validation rules in create, update, and delete queries
body: <p>Is it possible to incorporate data validation rules for Create, Update, and Delete operations when using the Knex.js query builder library, even though Knex does not do this <a href="https://github.com/tgriesser/knex/issues/772" rel="nofollow">out of the box</a>? </p>
  
  <p>If yes, then:</p>
  
  <ul>
  <li>is it a good idea or bad idea to stay inside Knex for this?</li>
  <li>if it is an OK approach, is there a decent example of this someone can point to?</li>
  <li>would you be better off and have less friction if you include Bookshelf.js?</li>
  </ul>
  
  <p>Even Bookshelf does not come with a validation engine.</p>