Top "Knex.js" questions

Knex.

Conditional filter using Knex.js and SQL with multiple search criteria

I have a database of items that my user needs to be able to search. They can apply different filters …

javascript sql node.js knex.js
Ignore error in batch insert Postgresql

I have a process that runs every 5 minutes and tries to insert a batch of articles into a table. The …

sql node.js postgresql knex.js
Strongly-typed database access with Node.JS and TypeScript

When we use C#, we can access our database in a strongly-typed manner using Code-First approach: public class Blog { public …

javascript node.js typescript bookshelf.js knex.js
knex.js + pg specify varchar to be > 255

When creating a table in knex migrations, I have indicated a col as such: table.string("content"); It defaults to …

node.js postgresql knex.js
How can I mock a fake database for when unit testing against Knex?

I've been using Knex successfully to connect to a backend database. But I want to be able to unit test …

javascript node.js unit-testing knex.js proxyquire
Create a nested return model with Knex.js

I'm using Knex.js to query a MySQL database in a Hapi.js route. The following code works but requires …

javascript node.js knex.js hapi.js
Knex.js subqueries on MySQL left join

I'm kind of new with Knex.js query builder and I'm currently having trouble with one somehow simple MySQL select. …

mysql knex.js