Skip to content

Commit d04d7ed

Browse files
committed
make quickstart conformant
1 parent 4fef373 commit d04d7ed

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ In the previous code example, the following apply:
4646
In the following code example, credentials are stored in environment variables. For bash and similar shells you can set them by running `export FIREBOLT_CLIENT_ID=<your_client_id>` where <your_client_id> is the id you want to set. This method prevents hardcoding sensitive information in your code so it can be safely commited to a version control system such as Git. Many IDEs, including IntelliJ IDEA, allow the configuration of environment variables in their run configurations.
4747

4848
```typescript
49-
import { Firebolt } from 'firebolt-sdk'
49+
import { Firebolt } from "firebolt-sdk"
5050

5151
const firebolt = Firebolt();
5252

5353
const connection = await firebolt.connect({
5454
auth: {
5555
client_id: process.env.FIREBOLT_CLIENT_ID,
56-
client_secret: process.env.FIREBOLT_CLIENT_SECRET,
56+
client_secret: process.env.FIREBOLT_CLIENT_SECRET
5757
},
5858
account: process.env.FIREBOLT_ACCOUNT,
5959
database: process.env.FIREBOLT_DATABASE,
@@ -87,7 +87,7 @@ const statement = await connection.execute("SELECT * FROM users");
8787
// fetch statement result
8888
const { data, meta } = await statement.fetchResult();
8989

90-
console.log(meta)
90+
console.log(meta);
9191
// Outputs:
9292
// [
9393
// Meta { type: 'int null', name: 'id' },
@@ -106,17 +106,16 @@ data.on("error", error => {
106106
console.log(error);
107107
});
108108

109-
const rows = []
109+
const rows = [];
110110

111111
for await (const row of data) {
112112
rows.push(row);
113113
}
114114

115-
console.log(rows)
115+
console.log(rows);
116116
// Outputs:
117117
// [ [ 1, 'Alice', 31 ], [ 2, 'Bob', 25 ] ]
118118

119-
120119
```
121120

122121
## Contents

0 commit comments

Comments
 (0)