import { listUsers } from "https://deno.land/x/netzo@0.2.84/plugins/portals/utils/db.ts";
Returns a Deno.KvListIterator
which can be used to iterate over
the users in the database.
Examples
Example 1
Example 1
import { listUsers } from "netzo/plugins/portals/utils/db.ts";
for await (const entry of listUsers()) {
entry.value.login; // Returns "jack"
entry.value.sessionId; // Returns "xxx"
entry.value.role; // Returns "admin"
}
Parameters
optional
options: Deno.KvListOptions