apache_conf Sequelize config.json用于不同的数据库

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf Sequelize config.json用于不同的数据库相关的知识,希望对你有一定的参考价值。

{
  "development": {
    "dialect": "sqlite",
    "storage": "path/to/folder/dev_database.sqlite"
  },
  "test": {
    "dialect": "sqlite",
    "storage": "path/to/folder/test_database.sqlite"
  },
  "production": {
    "dialect": "sqlite",
    "storage": "path/to/folder/prod_database.sqlite"
  }
}
{
  "development": {
    "username": "root",
    "password": "password",
    "database": "burger_sequel",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  "test": {
    "username": "root",
    "password": null,
    "database": "database_test",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  "production": {
    "use_env_variable": "JAWSDB_URL",
    "dialect": "mysql"
  }
}

以上是关于apache_conf Sequelize config.json用于不同的数据库的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf Redireccionar con WWW a sin WWW

apache_conf compesion y optimizacion de carga de pagina con .htaccess

Sequelize - 模型和迁移

没有Sequelize实例通过

NodeJS Sequelize 从查询返回数据

如何访问数组对象的元素?