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.ts4
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 };