JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q29247F
  • License Apache-2.0

Database Manager With Support For Multiple Providers

Package Exports

  • air5-carbon

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (air5-carbon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node-Air5

npm npm NPM

Logo

Air5 Is An Asynchronous And Flexible Database Manager That Supports Multiple Providers.

NPM

Providers

  • Sqlite
  • LevelDB
  • RocksDB
  • PouchDB
  • NeDB
  • LowDB
  • AirDB
  • Enmap
  • Memory
  • YAML
  • CSV
  • TSON
  • BSON
  • JSON
  • FLAT

For A Full List Of Providers See: https://slicewire.gitbook.io/air5/providers

Installation

🔗 Installation 🔗

Usage

const Air5 = require('air5')
 
// Use One Of The Following
 
const database = new Air5('example-name', {
    provider: 'provider-goes-here',
    path: './air5/'
})
// Replace The Provider With Any That Is Installed
 
database.set('key', 'value')
// Insert Key And Value Into The Database
 
console.log(database.get('key', 'value'))
// Fetch Key Or Value From The Database
 
console.log(database.has('key', 'value'))
// Check If Key Or Value Exists In The Database
 
database.delete('key')
// Delete Key From The Database
 
database.clear()
// Clear The Whole Database
 
database.ensure('key', 'value')
// If Key Does Not Exist Insert Key And Value Into The Database
 
database.keys()
// Return The Keys In The Database As An Array

database.values()
// Return The Values In The Database As An Array

database.entries()
// Return Entries To The Database

database.size
// Return The Size Of The Database As A Number

database.forEach((value, key) => {})
// Return The Value(s) And Key(s) Of The Database

database.data()
// Convert And Return The Database As An Object/JSON
 
database.toJSON()
// Convert And Return The Database As An Object/JSON
 
database.toArray()
// Convert And Return The Database As An Array
 

Documetation

🔗 Documentation 🔗

Creating Providers

🔗 Creating Providers 🔗

Copyright 2020 Jairus Tanaka - Apache 2.0