All files / project-code/src/db initPostgresDB.ts

0% Statements 0/2
100% Branches 0/0
0% Functions 0/2
0% Lines 0/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                               
import * as Sequelize from 'sequelize';
const gres: Sequelize.Sequelize = new Sequelize(
	'postgres://admin:eprprJacR0hBpmWvs5IDJZTnjRAY2gM3tSm0b1af@localhost:5432/be4',
	{
		operatorsAliases : false
	}
);
 
gres.authenticate()
	.then(() => {
		// Connection has been established successfully.
	})
	.catch((err: Error) => {
		// Unable to connect to the database.
	});