diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2023-03-22 15:23:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 20:23:36 +0100 |
commit | f9c8d98b776083525a41f37ebfd86a4a4a288c43 (patch) | |
tree | fe96f0affd7c923ede54acd2b969e5c2e4089afd /ext/kv/01_db.ts | |
parent | 47aa58c72168055047151927946b81085e4ea4cd (diff) |
Revert "refactor: rename Deno.openKv() to Deno.kv() (#18349)" (#18362)
This reverts commit 50b793c9ed866ee29e8f04b4fa24b485b01a2b74.
Diffstat (limited to 'ext/kv/01_db.ts')
-rw-r--r-- | ext/kv/01_db.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kv/01_db.ts b/ext/kv/01_db.ts index 4f1f9bc5a..571a1b3cd 100644 --- a/ext/kv/01_db.ts +++ b/ext/kv/01_db.ts @@ -14,7 +14,7 @@ const encodeCursor: ( ) => string = (selector, boundaryKey) => ops.op_kv_encode_cursor(selector, boundaryKey); -async function kv(path: string) { +async function openKv(path: string) { const rid = await core.opAsync("op_kv_database_open", path); return new Kv(rid); } @@ -466,4 +466,4 @@ class KvListIterator extends AsyncIterator } } -export { Kv, kv, KvListIterator, KvU64 }; +export { Kv, KvListIterator, KvU64, openKv }; |