JSPM

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

Air5 CarbonDB Adapter

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

Air5-CarbonDB

npm npm NPM

Logo

Air5 CarbonDB Adapter.

NPM

Installation

npm i air5-carbon --save

Usage

const Air5 = require('air5')
 
// Use One Of The Following
 
const database = new Air5('example-name', {
    provider: 'carbonDB',
    path: './air5/'
})
// Replace The Provider With Any Installed Engine
 
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.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
 

Copyright 2020 Jairus Tanaka - Apache 2.0