1.2.0 • Published 6 years ago

simple-jsonsql v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

simple-jsonsql

How to install

npm i simple-jsonsql

How to Use

const nosqlJson = require('simple-jsonsql)
const nosql = new nosqlJson() 

Create DataBase

nosql.createDB(() => {
console.log('Created Database');
})

Create Table

nosql.createTable('user',(res) => {
    res.created ? console.log('created table') : 
    console.error(res.error)
})

Insert row to table

 nosql.insertInto('users', ['name', 'email', 'age'],  
    ['arul', 'arulgetsolute@gmail.com', 28], function (data) {
     res.inserted ? console.log('created table') : 
     console.error(res.error)
 })
 

Read table

  Get all column data
  -------------------
  
         nosql.selectItem('users', '*', (data) => {
              console.log(JSON.stringify(data))
           });
        
        
  Get all specific column data
  -----------------------------
              
       nosql.selectItem('users', ['age', 'emails'], (data) => {
           console.log(JSON.stringify(data))
       });
1.2.0

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago