Skip to content
/ squalor Public

A lightweight one-way SQL ORM to transform objects into SQL

License

Notifications You must be signed in to change notification settings

khrome/squalor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squalor.js

squalor is an ultra-light SQL generation framework that (given an ID column) will take care of Create, Update and Delete, leaving you with only Read.

Static Use

var sql = require('squalor');


sql.save(object);

sql.remove(object);

Dynamic Use

var Update = require('squalor');

var change = new Update('my_table', {});
change.data.mycolumn = 'new_value';

somedatabase.query(change)
somedatabase.query(change.remove())

About

A lightweight one-way SQL ORM to transform objects into SQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published