Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

hyper63/hyper-adapter-dndb

Repository files navigation

hyper-adapter-dndb

A Data port adapter that uses DnDB in the hyper service framework

Nest Badge Test Current Version

Deprecation Notice: Besides not being able to support the hyper data api, DnDB and it's influence, NeDB, are both not actively maintained. We are no longer maintaining this adapter. Check out the PouchDB Data Adapter for an alternative "local" hyper adapter


Table of Contents

Background

dndb is a NoSQL embeddable database built for deno

https://dndb.crawford.ml/docs

Getting Started

import { default as dndb } from "https://x.nest.land/hyper-adapter-dndb@1.0.0/mod.js";

export default {
  app: opine,
  adapter: [
    {
      port: "data",
      plugins: [dndb({ dir: "/tmp" })],
    },
  ],
};

Installation

This is a Deno module available to import from nest.land

deps.js

export { default as dndb } from "https://x.nest.land/hyper-adapter-dndb@0.0.2/mod.js";

Features

  • Create a DnDB datastore
  • Remove a DnDB datastore
  • Create a document in a DnDB datastore
  • Retrieve a document in a DnDB datastore
  • Update a document in a DnDB datastore
  • Remove a document from a DnDB datastore
  • List documents in a DnDB datastore
  • Query documents in a DnDB datastore
  • Index documents in a DnDB datastore
  • Bulk create documents in a DnDB datastore

Methods

This adapter fully implements the Data port and can be used as the hyper Data service adapter

See the full port here

Contributing

Contributions are welcome! See the hyper contribution guide

Testing

./scripts/test.sh

To lint, check formatting, and run unit tests

License

Apache-2.0

About

DnDB adapter for Hyper Data port

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •