Skip to content

Commit 3de3ce5

Browse files
authored
fix(local-explorer-ui): Hide internal _cf_KV tables in Durable Objects (cloudflare#12918)
1 parent 44b9df8 commit 3de3ce5

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/nasty-bars-study.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/local-explorer-ui": patch
3+
---
4+
5+
Fixed listing internal Cloudflare Durable Object tables.
6+
7+
The internal `_cf_KV` table that is used when using Durable Objects KV storage is now hidden from the table list dropdown in the local explorer as it is not accessible.

packages/local-explorer-ui/src/drivers/do.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class LocalDODriver extends StudioSQLiteDriver {
144144
const result = await super.schemas();
145145

146146
// Filter out internal DO tables
147-
const excludeList = new Set(["_cf_METADATA"]);
147+
const excludeList = new Set(["_cf_KV", "_cf_METADATA"]);
148148

149149
return Object.fromEntries(
150150
Object.entries(result).map(([schemaName, schemaItems]) => [

0 commit comments

Comments
 (0)