generated from aicore/template-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 2
configs API
phoenixide edited this page Sep 2, 2022
·
2 revisions
Type: Object
-
hoststring hostname or ip address -
portstring port on which MySql server is listening -
databasestring name of database to do operations -
userstring name of user who has permissions to do operation -
passwordstring password of the user for authentication
It returns a JavaScript object with the host, port, database, user, and password for a MySQL database
Returns MySqlConfigs An object with the following properties: host: The value of the environment variable MY_SQL_SERVER or 'localhost'
port: The value of the environment variable MY_SQL_SERVER_PORT or '3306'
database: The value of the environment variable MY_SQL_SERVER_DB or a random hex string
user: The value of the environment variable MY_SQL_USER or a random hex string
password : The value of the environment variable MY_SQL_PASSWORD or a random hex string