-
I have read the API-reference carefully, but I can't figure out how to add columns to a model, so the table structure updates. If "Person.jsonSchema = {" is only for validation, what does "Model.fromJ…
-
There is no documentation on how to use whereBetween. Does anybody have any example on how to use Knex's whereBetween in Bookshelf?
http://knexjs.org/#Builder-whereBetween
-
Recently all of my Flynn apps are returning `executable file not found in $PATH` when I try to `flynn run [cmd]` where command is a command line app exposed by a node app (knexjs). This is affecting b…
-
Hi Guys,
I have a more detailed example of the problem I'm getting with related models with Bookshelf
``` javascript
let driver = require('knex');
let mockDb = require('mock-knex');
let knex = dri…
-
-
Hey guys,
Im trying to use a transaction. The statements works and takes effect. But if an error comes, the effect still there and there is no rollback.
Here is the code where Im testing my transa…
ghost updated
8 years ago
-
``` javascript
// request.post() value:
//[ { title: 'API-Episode 2', duration: 187 },
//{ title: 'API-Episode 3', duration: 188 },
//{ title: 'API-Episode 4', duration: 189 } ]
const episodeIds = yi…
-
The query is something like this
select id from table
where id1 = 2 and
where id3 in array and
where id4 in array1
from table ;
Here array and array1 are the arrays in which I have to look for u…
ghost updated
8 years ago
-
Is there a way to setup Knex to use the [pg-error](https://github.com/moll/node-pg-error) package? Ultimately, I'm looking for a way to gracefully handle database errors. Open to suggestions!
Thanks!…
-
Hi, I couldn't find an example online on how to this so I'm opening this issue.
Basically what I'm looking for is the behaviour ActiveRecord's `update_all` has, so I don't need to manually load many …