-
Hello,
I am using Knex.js to handle my database operations. Behind hood it uses tarn.js to handle Pool.
Trying to set `idleTimeoutMillis` to 0 I noticed that I get
`Error: Tarn: invalid op…
-
Do we want to use Sequelize ORM for this project?
@dantehemerson @sanjithpk @suresh-44
-
Read that knex.js and supposedly other DB drivers are switching over to tarn.js for their resource pooling.
https://www.npmjs.com/package/tarn _(Notice the surge in weekly downloads)_
Could this p…
-
Example code:
```js
const knex = require('knex')(/* config */);
process.on('unhandledRejection', err => {
console.log('unhandled!');
console.log(err);
});
async function test() {
…
niklv updated
5 years ago
-
In some query builder like `knex.js` it's possible to compose SQL queries, e.g.:
```javascript
function getLatest (query, limit) {
return query.orderBy('created_at', 'DESC').limit(limit)
}
```…
-
# Environment
Knex version: 0.16.5
Database + version: Postgres 11.2
OS: Windows 10, WSL and VSCode
# Bug
**Current Behavior:**
If you try to use the `options` argument of `table.timestamp…
-
There is a clear bug when specifying database timezones that is easily reproducible.
**Knex.js migration script, written in typescript**
```typescript
import * as Knex from 'knex';
const testT…
-
How to use knex.js and integrate functionalities of model tree structures with nested sets, like for example "Sequelize" with its library "[sequelize-nested-set](https://www.npmjs.com/package/sequeliz…
-
Bluebird version: 3.1.8
Node.js: 7.2.1
Consider the following example code:
```javascript
const Promise = require('bluebird');
Promise.config({
cancellation: true
});
const acqPromise = …
-
I recently switched from plain old js to typescript, which has a slightly different, and at times annoying, way of dealing with import/export keywords, but is more or less similar to es6 semantics.
…