Express Sweet API Reference - v3.0.0
    Preparing search index...

    Interface DatabaseConfig

    Database configuration interface for Sequelize connections. Defines environment-specific database configurations (development, test, production). Each environment contains Sequelize connection options.

    // config/database.js
    export default {
    development: {
    username: 'root',
    password: 'password',
    database: 'myapp_dev',
    host: 'localhost',
    dialect: 'mariadb',
    logging: console.log
    },
    test: {
    username: 'root',
    password: 'password',
    database: 'myapp_test',
    host: 'localhost',
    dialect: 'mariadb',
    logging: false
    },
    production: {
    username: 'root',
    password: 'password',
    database: 'myapp_prod',
    host: 'localhost',
    dialect: 'mariadb',
    logging: false,
    pool: {
    max: 5,
    min: 0,
    acquire: 30000,
    idle: 10000
    }
    }
    };

    Indexable

    • [key: string]: Options

      Environment-specific database configuration. Key represents environment name (development, test, production, etc.) Value contains Sequelize connection options for that environment.