Skip to content

toots/FastLegS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#FastLegS

PostgreSQL ORM on top of node-postgres.

Installation

npm install FastLegS

Quickstart

var FastLegS = require('FastLegS');

var connectionParams = {
  user: 'shes'
, password: 'got'
, database: 'legs'
, host: 'localhost'
, port: 5432
}

FastLegS.connect(connectionParams);

var Post = FastLegS.Base.extend({
  tableName: 'posts',
  primaryKey: 'id'
});

Post.create({ title: 'Some Title 1', body: 'Some body 1' }, function(err, results) {
  Post.find({ 'title.ilike': '%title%' }, { only: ['id', 'body'] }, function(err, post) {
    // Hooray!
  });
});

#The Full Monty

For the time being while we are writing up the most awesome README you've ever seen, why don't you try checking out our amazing tests for the full story.

#Contributors

  • Thad Clay (thadclay)
  • Jim Drannbauer (excellentdrums)
  • Rob Malko (malkomalko)

About

PostgreSQL ORM on top of node-postgres.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%