diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2023-03-22 10:02:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 10:02:40 -0400 |
commit | 50b793c9ed866ee29e8f04b4fa24b485b01a2b74 (patch) | |
tree | c67d9052d553f389350afc1039bf26db49aa862a /ext/kv/01_db.ts | |
parent | e73e8410f66aae052c7c2101d7fd3ce8c8b764e7 (diff) |
refactor: rename Deno.openKv() to Deno.kv() (#18349)
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 571a1b3cd..4f1f9bc5a 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 openKv(path: string) { +async function kv(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, KvListIterator, KvU64, openKv }; +export { Kv, kv, KvListIterator, KvU64 }; |