- include module
- createNewModel Model name, estructure []
const homes = new dataFileDatabase('home', ['size', 'floors'])
homes.setVal({ 'size': 130, 'floors': 1 }).then(result => console.log(result))
- update objetTo to find, param, value to find, new values
homes.updateVals('floors', '=', 1, { 'size': 90 }).then(result => console.log(result))
- delete objetTo to find, param, value to find
homes.deleteteVals('floors', '=', '1').then(result => console.log(result))
- find objetTo to find, param, value to find
homes.getVal('floors', '=', '1').then(result => console.log(result))
homes.data.then(results => console.log(results))
cant use in getVal, updateVals, deleteteVals