summaryrefslogtreecommitdiff
path: root/ext/kv/01_db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kv/01_db.ts')
-rw-r--r--ext/kv/01_db.ts31
1 files changed, 16 insertions, 15 deletions
diff --git a/ext/kv/01_db.ts b/ext/kv/01_db.ts
index be7a0a780..bbcedfb79 100644
--- a/ext/kv/01_db.ts
+++ b/ext/kv/01_db.ts
@@ -1,8 +1,19 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { core, primordials } from "ext:core/mod.js";
-import { SymbolDispose } from "ext:deno_web/00_infra.js";
-import { ReadableStream } from "ext:deno_web/06_streams.js";
+const {
+ isPromise,
+} = core;
+const {
+ op_kv_atomic_write,
+ op_kv_database_open,
+ op_kv_dequeue_next_message,
+ op_kv_encode_cursor,
+ op_kv_finish_dequeued_message,
+ op_kv_snapshot_read,
+ op_kv_watch,
+ op_kv_watch_next,
+} = core.ensureFastOps();
const {
ArrayFrom,
ArrayPrototypeMap,
@@ -30,19 +41,9 @@ const {
TypeError,
TypedArrayPrototypeGetSymbolToStringTag,
} = primordials;
-const {
- isPromise,
-} = core;
-const {
- op_kv_atomic_write,
- op_kv_database_open,
- op_kv_dequeue_next_message,
- op_kv_encode_cursor,
- op_kv_finish_dequeued_message,
- op_kv_snapshot_read,
- op_kv_watch,
- op_kv_watch_next,
-} = core.ensureFastOps();
+
+import { SymbolDispose } from "ext:deno_web/00_infra.js";
+import { ReadableStream } from "ext:deno_web/06_streams.js";
const encodeCursor: (
selector: [Deno.KvKey | null, Deno.KvKey | null, Deno.KvKey | null],