Skip to content

Instantly share code, notes, and snippets.

View csotiriou's full-sized avatar

Christos Sotiriou csotiriou

View GitHub Profile
@csotiriou
csotiriou / upsert.js
Last active August 27, 2016 18:18 — forked from plurch/upsert.js
PostgreSQL 9.5 Upsert using Knex.js
exports.knex = require('knex')({
client: 'pg',
connection: {
host : '127.0.0.1',
user : 'your_database_user',
password : 'your_database_password',
database : 'myapp_test'
}
});