postgres insert knex code example
Example: postgres insert knex
// Returns [1] in "mysql", "sqlite", "oracle"; [] in "postgresql" unless the 'returning' parameter is set.
knex('books').insert({title: 'Slaughterhouse Five'})Outputs:insert into `books` (`title`) values ('Slaughterhouse Five')