-
How do I ensure that knex migrates using multiple files in a reliable order, making sure to finish one file before moving on to the next? #148 suggests this the file processing order is based on file …
Pomax updated
8 years ago
-
Knex (http://knexjs.org/) is a query builder that supports the same dialects that sequelize supports.
I thing that sequelize can benefit a lot from using knex to build queries. This would remove a lo…
-
Sure, there are plenty of powerful **ORM**s... Some are "indoctrinated", other are "illuminated". :smirk:
But sometimes, while still you want to use an ORM, from habits or even from necessity, those…
-
I've got a method on my model for returning posts ordered by date. I'm wanting to update this so that it uses the HN ranking algorithm.
``` sql
SELECT x.*
FROM POSTS x
JOIN (SELECT p.posti…
-
Hi all:
I'm following the CLI instructions to do a demo on migrations. I have a brand new, empty db setup, `migrationdemo_dev`, and my knexjs file is conf'd for it. Using the CLI, i do:
1. `knex mi…
-
how to use IN command in bookshelf?? kindly reply??
-
I think in a couple to `Bookscheff.initialize()` its should to exist a method to close the connections to allow the process to terminate.
I searched through the entire bookscheff to find a solution, …
-
Hi,
I am wondering what would be the right way to order and query by a JSONB property
Currently, this call
``` js
Ad.query(scope)
.query(details->>'price')
.fetchAll()
.then(function (models) …
-
I need to add `'crypt(?, password) as password_matches', 'my-secret'` to the default select.
I'm guessing I should be able to do that with the querybuilder, but I'm unclear as to how.
```
MyModel.fo…
-
This could be a possible documentation problem.
I get this error:
`TypeError: Object # has no method 'inTable'`
when I run this command:
``` js
t.uuid('order_id').inTable('orders').references('id'…