Install Locally is recommended
npm install yorm -s
Usage
Create your database configuration in dbconfig.js in your project root folder. There is a sample with yorm module folder.
Then create your application tables. You can also define your own structure types as well.
E.g:
create table aa(id1 int, id2 int, val1 char(20), primary key(id1, id2)
var yorm = require('yorm')
var onerecord = {}
onerecord.id1 = '1'
onerecord.id2 = '20'
onerecord.val1 = 'Testing value'
var test = function() {
yorm.saveone('aa', onerecord)
}
setTimeout(test, 1000)
Run the test and check table data by
select * from aa;
Your will see the value inserted.