Merge branch 'master' of https://github.com/mariadb-corporation/Developer-Examples
commit
7e9929d53b
|
@ -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>
|
### 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
|
Example implementation:
|
||||||
const pool = mariadb.createPool({
|
|
||||||
host: '<host_address_here>',
|
```
|
||||||
user:'<username_here>',
|
DB_HOST=<host_address>
|
||||||
password: '<password_here>',
|
DB_PORT=<port_number>
|
||||||
database: 'flights',
|
DB_USER=<username>
|
||||||
multipleStatements: true,
|
DB_PASS=<password>
|
||||||
connectionLimit: 5
|
DB_NAME=<database>
|
||||||
});
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build the code <a name="build-code"></a>
|
### Build the code <a name="build-code"></a>
|
||||||
|
|
Ładowanie…
Reference in New Issue