Thinky
=============================== Light Node.js ORM for RethinkDB.
Quick start
Install:
npm install thinky
Use:
var thinky = ;var type = thinkytype; // Create a model - the table is automatically createdvar Post = thinky; // You can also add constraints on the schemavar Author = thinky; // Join the modelsPost;
Save a new post with its author.
// Create a new postvar post = title: "Hello World!" content: "This is an example."; // Create a new authorvar author = name: "Michel" email: "orphee@gmail.com"; // Join the documentspostauthor = author; post;
Retrieve the post with its author.
Post;
Documentation
https://www.justonepixel.com/thinky (branch `gh-pages).
Help
No SLA, but a few developers hang out there and may be able to help:
Run the tests
npm test
Contribute
You are welcome to do a pull request.
Roadmap
The roadmap is defined with the issues/feedback on GitHub. Checkout:
https://github.com/neumino/thinky/issues
Author
- Michel Tu -- orphee@gmail.com -- blog -- twitter
Contributors
- chrisfosterelli
- colprog
- dulichan
- flienteen
- marshall007
- mindjuice
- Morhaus
- primitive-type
- nikaspran
- rasapetter
- simonratner
- wezs
License
MIT, see the LICENSE file