static-database
v1.0.2
Published
For Create a Demo Database
Downloads
2
Maintainers
Readme
How to Use:
Get All Data : dataobject.select(TABLE_NAME);
example: dataobject.select('news');
Get One Data (Like Where ID): dataobject.select(TABLE_NAME,PRIMARY_KEY);
example: dataobject.select('news',req.params.id);
Insert Data: dataobject.insert(TABLE_NAME,CONTENT);
example: dataobject.insert('news',req.body);
Delete Data: dataobject.delete(TABLE_NAME,PRIMARY_KEY);
example: dataobject.delete('news',req.params.id);
Update Data: dataobject.update(TABLE_NAME,PRIMARY_KEY,CONTENT);
example: dataobject.update('news',req.params.id,req.body);