import { database } from "https://deno.land/x/netzo@0.4.11/database/plugin.ts";
A fresh plugin that registers middleware and handlers to
to mount RESTful API routes on the /db
route path.
A fresh plugin that creates handlers for the following routes:
GET /db?$prefix=<PREFIX>
find all records matching queryGET /db?$key=<KEY>
get an entry by keyPOST /db?$prefix=<PREFIX>
create a new entry (auto-generates id)PUT /db?$key=<KEY>
update an entry by keyPATCH /db?$key=<KEY>
patch an entry by keyDELETE /db?$key=<KEY>
remove an entry by key
type
(options?: DatabaseConfig) => Plugin