Skip to content

jugglingdb/jugglingdb-rethink

This branch is 74 commits ahead of floridoo/jugglingdb-rethink:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 10, 2016
ca20fba · Jul 10, 2016

History

83 Commits
Jan 19, 2015
May 25, 2013
Jul 10, 2016
Jan 14, 2014
Jan 19, 2015
Jan 19, 2015
Oct 25, 2014
Jul 10, 2016
Jan 19, 2015

Repository files navigation

JugglingDB-RethinkDB

RethinkDB adapter for jugglingdb.

Attention! JugglingDB is awfully maintained. I fix bugs and update this adapter for newer RethinkDB versions if requested, but I suggest you to use other ORM for Node. If you know good one which does not have RethinkDB support yet -- let me know.

Build Status

Usage

To use it you need [email protected].

  1. Setup dependencies in package.json:

    {
      ...
      "dependencies": {
        "jugglingdb": "0.2.x",
        "jugglingdb-rethink": "latest"
      },
      ...
    }
  2. Use (default options, you can omit them):

    Important: database must exist.

        var Schema = require('jugglingdb').Schema;
        var schema = new Schema('rethink', {
            host: "localhost",
            port: 28015,
            database: "test",
            poolMin: 1,
            poolMax: 10
        });
        ...
  3. Connection pooling

    RethinkDB adapter supports connection pooling via generic-pool module. Pooling is enabled by default and can not be disabled for now. You can change pooling options specifying parameters poolMin (default: 1) and poolMax (default: 10).

MIT License

Copyright (C) 2013 by Dmitry Gorbunov

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.

About

RethinkDB adapter for JugglingDB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.9%
  • Makefile 1.1%