CaminteJS is cross-db ORM for nodejs, providing common interface to access most popular database formats.
mysql, sqlite3, riak, postgres, couchdb, mongodb, redis, neo4j, firebird, rethinkdb, tingodb
First install node.js. Then:
$ npm install caminte --save
- Connecting to DB
- Defining a Model
- Define Indices
- Define Primary Keys
- Schema data types
- Accessing a Model
- Setup Relationships
- Setup Validations
- Common API methods
- Define any Custom Method
- Query Interface
- Middleware (Hooks)
- Object lifecycle
- Your own database adapter
- Running tests
Now all common logic described in ./lib/*.js
, and database-specific stuff in ./lib/adapters/*.js
. It's super-tiny, right?
If you have found a bug please write unit test, and make sure all other tests still pass before pushing code to repo.
- TrinteJS - Javascrpt MVC Framework for Node.JS
- Cross-db Session Storage for ExpressJS
- MongoDB Session Storage for ExpressJS
- Middleware exposing user-agent for NodeJS
- Uploading files middleware for NodeJS
- 2CO NodeJS adapter for 2checkout API payment gateway
(The MIT License)
Copyright (c) 2011 by Anatoliy Chakkaev <mail [åt] anatoliy [døt] in>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Visit the author website.
- Visit the CaminteJS home page.
- Follow @biggora on Twitter for updates.
- Report issues on the github issues page.