-
Hi,
I'm trying to use bookshelf.js to populate my database via a nodejs script (executed in a cronjob). However I noticed that the process doesn't exit even after the records are successfully written…
-
``` js
addedSource.then((addedSource2) => {
console.log('addedSource', addedSource2);
});
sources.push(addedSource);
P
.all(sources)
.then((sourceEntities) => {
console.log('sour…
gajus updated
8 years ago
-
I want to build this query:
```
{ method: 'select',
options: {},
bindings: [ 'aaa', 'bbb', 'bbb', 'aaa' ],
sql: 'select `Person`.* from `Person`
where (`firstName` = ? and `lastName` = ?) o…
-
Hello there,
I tried to write an Excel import for my application. After importing smaller excelfiles (1000ish lines), I tried a big one with ca 20000. The excel import stopped working.
I debugged it…
-
-
I have my app mostly done and was considering open sourcing it, for dev it uses sqlite3 and for production it uses mysql2 but it occurred to me a new user that had just downloaded my app wont have any…
-
Test DB code compatibility with PostgreSQL / Mysql.
-
Hi all,
I've just started learning node js recently. So far, I had gone through several tutorials on mongodb and mongoose for node. However, I've been pointed to Knex (more specifically postgreSQL) f…
-
The following leads to an injection:
sql.set("field", "value'");
it results in: UPDATE table SET 'value'';
more severe: sql.set("field", "' + (SELECT count(*) FROM other_table) + '");
-
There are many different postgres promise libraries out there, is this one ready for production use? Also why would I want to use this library over something like http://knexjs.org/. These types of qu…