Answers for "processing an express form with node-postgres"

0

processing an express form with node-postgres

const pg = require('pg');
const connectionString = process.env.DATABASE_URL || 'postgres://localhost:5432/todo';

const client = new pg.Client(connectionString);
client.connect();
const query = client.query(
  'CREATE TABLE items(id SERIAL PRIMARY KEY, text VARCHAR(40) not null, complete BOOLEAN)');
query.on('end', () => { client.end(); });1
Posted by: Guest on April-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language