Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 486 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 486 Bytes

#Introduction

Zatanna is a DAO implementation for postgresql.

#Example

##Insert/Update/Delete data

var Zatanna = require("zatanna");

var dao = new Zatanna(config, path);
dao.organizations.insert({ id : 1, name : 'Umbrella' });
dao.organizations.insert({ id : 2, name : 'Cyberdyne Systems' });
dao.execute().then(...).catch(...);

##Select

var Zatanna = require("zatanna");

var dao = new Zatanna(config, path);
dao.organizations.select().then(...).catch(...);