Skip to content

Commit 0cf4ccc

Browse files
Update README.md
1 parent bea2b42 commit 0cf4ccc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ To enable PlanetScale Boost, run `SET @@boost_cached_queries = true` once. All s
8686

8787
To learn more, visit: [Query caching with PlanetScale Boost](https://planetscale.com/docs/concepts/query-caching-with-planetscale-boost)
8888

89-
```
89+
```ts
9090
const conn = client.connection()
9191
// Enable boost for the connection
9292
await conn.execute('SET @@boost_cached_queries = true')
9393

94-
// Disable boost for the connection
94+
const results = await conn.execute('...')
95+
96+
// Optionally, you may disable boost for the connection by setting to false
9597
await conn.execute('SET @@boost_cached_queries = false')
9698
```
9799

98-
99100
### Custom fetch function
100101

101102
Node.js version 18 includes a built-in global `fetch` function. When using an older version of Node.js, you can provide a custom fetch function implementation. We recommend the [`undici`][1] package on which Node's built-in fetch is based.

0 commit comments

Comments
 (0)