Update README.md

pull/1/head
Rob Hedgpeth 2020-01-30 13:07:49 -08:00 zatwierdzone przez GitHub
rodzic ad7d5a9de6
commit 6c0aeaf105
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 10 usunięć

Wyświetl plik

@ -62,17 +62,16 @@ Download this code directly or use [git](git-scm.org) (through CLI or a client)
### Configure the code <a name="configure-code"></a>
Update the MariaDB connection configuration [here](src/db.js) to point to **your** ColumnStore instance of MariaDB.
Configure the MariaDB connection by [adding an .env file to the Node.js project](https://github.com/mariadb-corporation/mariadb-connector-nodejs/blob/master/documentation/promise-api.md#security-consideration).
```js
const pool = mariadb.createPool({
host: '<host_address_here>',
user:'<username_here>',
password: '<password_here>',
database: 'flights',
multipleStatements: true,
connectionLimit: 5
});
Example implementation:
```
DB_HOST=<host_address>
DB_PORT=<port_number>
DB_USER=<username>
DB_PASS=<password>
DB_NAME=<database>
```
### Build the code <a name="build-code"></a>