1.0.0 • Published 4 years ago

azon.js v1.0.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

Azon

Azon is a NoSQL database that is based on JSON documents, to let you think in objects.

Why Azon?

Azon has come to replace typical NoSQL databases, that are stored in a server, but if you want a lightweight project that requires a small database, there aren't easy-to-use NoSQL databases for you. Azon has come to fix that.

Installation

You can install this package by executing in your command line:

$ npm install azon

Usage

Here is an example to use Azon:

const { Azon } = require('azon.js')

const azon = new Azon()

azon.client.api.databases.post({
    name: 'mydb'
})

// insert

azon.client.api.documents.post('mydb', 'mydocument', {
    Name: 'Evan',
    Age: 23,
    Premium: false
})

// select
let query = azon.client.api.documents.getUnique('mydb', 'mydocument', {
    where: 'Name'
}) // it returns Evan