#Good practices for deno.kv on deno deploy.

4 messages · Page 1 of 1 (latest)

still cloak
#

I would like to try deno.kv but I do not want to cause any harm. By reading the doc, I do not see any reference to "closing" the kv connection. I see await Deno.openKv(); but I do not see anywhere where it closes it. Is that normal?

Sorry that I have to ask here, I googled and looked here a bit, I have not found anything meaningful.

cheers!

Didier

tough yacht
#

I don't believe there's any way to "close" the KV connection, nor any reason to do so. Maybe the name of the function is misleading.

hazy hull
#

In the cli (SQLite), kv.close() will flush and close the Write-Ahead-Log (.wal) files.

#

This is convenient if you plan to copy or move the database file, and totally unnecessary if you don't.