1.0.2 • Published 5 years ago

data_file_database v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Data file database!

use

  • include module
  • createNewModel Model name, estructure []
const casas = new dataFileDatabase('dataFile', ["casa", "perro"])
  • insert objetTo insert
    casas.setVal({ "casa": "verde", "perro": "hh" }).then(a => console.log(a))
  • update objetTo to find, param, value to find, new values
    casas.updateVals('casa', '=', 'naranja', { "casa": "rosa" }).then(a => console.log(a))
  • delete objetTo to find, param, value to find
    casas.deleteteVals('casa', '=', 'roja').then(a => console.log(a)) 
  • find objetTo to find, param, value to find
  casas.getVal('casa', '=', 'roja')
  • find all
casas.data.then(a => console.log(a))

cant use in getVal, updateVals, deleteteVals

  • "="
  • "!="
  • ">"
  • "<"
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago