I have a database created through Postgresql. I'm attempting to connect to the database via Knex.js.
In my text editor (atom) I have required knex
const knex = require('knex');
Second - I have begun to initialize the library like so:
const postgres = knex ({ client: 'pg', connection: { host: '127.0.0.1', port: '5432', user: 'is myself', password: '', database: 'mediumrare_database' } });
Third - I am attempting to pull data from that db like so:
postgres.select('*').from('mediumrare_database).then(data => {console.log(data)});
Finally, the error message I am receiving is as follows:
Unhandled rejection error: relation "mediumrare_database" does not exist