const { Sequelize } = require('sequelize'); // Connect to database. const sequelize = new Sequelize({ dialect: 'sqlite', storage: 'C:/myDataFile.sqlite' }); // Test connection try { sequelize.authenticate(); console.log('Connection has been established successfully.'); } catch (error) { console.error('Unable to connect to the database:', error); }