-
Hey, everyone.
I'm writing an express.js app with Knex and Bookshelf.
My server file loads the database connection as one of the first things and assigns it to
global.DB = Bookshelf.initialize(db_con…
-
I managed to put everything in place but can not get my database take the structure defined on my models.
Do I need to run something in order to update my database schema? (Like rails migrations) Do …
-
I understand that the CLI tool has been broken out into its own repo, but I'm having difficulty finding documentation on how to use it - the link in the Migrations section of the docs is now broken. I…
-
Hello! How can i use Knex only for query building as a string? Without specifying connection to DB.
i.e.
``` js
var knex = require('knex')({
dialect: 'mysql'
});
knex.select('title', 'author', 'y…
-
Migration part:
`table.dateTime('created_at').notNullable().defaultTo('now()');`
Expected behavior:
`created_at timestamp without time zone NOT NULL DEFAULT now(),`
Functional behavior:
`created_at ti…
-
Hey,
I'm writing a library that would like to use Knex for its query building, but don't want to advertise that fact outside the library. I also don't want to everyone to run more than one connection…
moll updated
10 years ago
-
**Issue by [RyanNovas](https://github.com/RyanNovas)**
_Wednesday Jun 11, 2014 at 14:53 GMT_
_Originally opened as https://github.com/empirical-org/Quill-Writer-Archive/issues/20_
---
Goal: We need…
-
Hi,
I found it is impossible to build the following query:
update `schema_version` set `version_rank` = `version_rank` + 1 where `version_rank` >= 198
the version_rank column is int(11) type (mysql)…
-
Schema builder has commonly used data types but not all. Is there a way to create column with other data types that is not provided with knex (for example, LONGTEXT, NVARCHAR, BIGINT)?
Also, I have n…
-
I've got a problem when I do an insert, but I do the same think in an update and it works perfectly.
I will try to explain: I'm using, as you suggested me, the Knex.Raw() to run Postgre functions for…