From da881b840f1e574180dd2dc83c2a1898d243a253 Mon Sep 17 00:00:00 2001 From: Nick Van Wiggeren Date: Tue, 29 Oct 2024 08:35:18 -0700 Subject: [PATCH] README: remove extra docs --- README.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/README.md b/README.md index 0cfb01c..c1e18e5 100644 --- a/README.md +++ b/README.md @@ -82,23 +82,6 @@ const results = await conn.transaction(async (tx) => { console.log(results) ``` -### Usage with PlanetScale Boost - -To enable PlanetScale Boost, run `SET @@boost_cached_queries = true` once. All subsequent queries run on the same connection will use boost if it's enabled for the query pattern. Non-matching queries will run as normal. - -To learn more, visit: [Query caching with PlanetScale Boost](https://planetscale.com/docs/concepts/query-caching-with-planetscale-boost) - -```ts -const conn = client.connection() -// Enable boost for the connection -await conn.execute('SET @@boost_cached_queries = true') - -const results = await conn.execute('...') - -// Optionally, you may disable boost for the connection by setting to false -await conn.execute('SET @@boost_cached_queries = false') -``` - ### Custom fetch function 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.