All Projects → cvent → lounge

cvent / lounge

Licence: MIT license
Simple Mongoose-inspired ODM for Couchbase.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to lounge

influxable
A lightweight python ORM / ODM / Client for InfluxDB
Stars: ✭ 36 (+33.33%)
Mutual labels:  odm
couchbase exporter
Export metrics from Couchbase Server for Prometheus consumption
Stars: ✭ 32 (+18.52%)
Mutual labels:  couchbase
mango
Core utility library & data connectors designed for simpler usage in Scala
Stars: ✭ 41 (+51.85%)
Mutual labels:  couchbase
docker-couchbase-server
🎪 Couchbase Server clusters on Docker
Stars: ✭ 20 (-25.93%)
Mutual labels:  couchbase
petstore
A simple skeleton to build api's based on the chubbyphp-framework, mezzio (former zend-expressive) or slim.
Stars: ✭ 34 (+25.93%)
Mutual labels:  odm
couchbase-shell
Shell yeah!
Stars: ✭ 30 (+11.11%)
Mutual labels:  couchbase
couchbase-java-importer
This is a pluggable importer for Couchbase
Stars: ✭ 13 (-51.85%)
Mutual labels:  couchbase
monogram
Aspect-oriented layer on top of the MongoDB Node.js driver
Stars: ✭ 76 (+181.48%)
Mutual labels:  odm
jsonOdm
A JSON ODM (object document mapper) for JavaScript to use on the server or in the browser.
Stars: ✭ 95 (+251.85%)
Mutual labels:  odm
PyODM
A Python SDK for adding aerial image processing capabilities to your applications 🔌
Stars: ✭ 70 (+159.26%)
Mutual labels:  odm
mars
Mars - ODM Framework for MongoDB (MongoDB ODM Java )
Stars: ✭ 35 (+29.63%)
Mutual labels:  odm
couchmove
Java data migration tool for Couchbase
Stars: ✭ 36 (+33.33%)
Mutual labels:  couchbase
php-mongo-migrator
Migrations of MongoDB. Part of @PHPMongoKit
Stars: ✭ 29 (+7.41%)
Mutual labels:  odm
sidecache
Sidecar cache for kubernetes applications.
Stars: ✭ 38 (+40.74%)
Mutual labels:  couchbase
Ming
MongoDB ODM (Object Document Mapper) with Unit of Works, IdentityMap, Relations and Mongo-In-Memory implementation
Stars: ✭ 19 (-29.63%)
Mutual labels:  odm
xenus
A simple and elegant MongoDB ODM
Stars: ✭ 32 (+18.52%)
Mutual labels:  odm
Cachalot
Caching rethought – cache a lot in a proper way.
Stars: ✭ 25 (-7.41%)
Mutual labels:  couchbase
marpat
A class-based ES6 ODM for Mongo-like databases.
Stars: ✭ 18 (-33.33%)
Mutual labels:  odm
mongu
🌱 Yet another Python Object-Document Mapper on top of PyMongo. It's lightweight, intuitive to use and easy to understand.
Stars: ✭ 15 (-44.44%)
Mutual labels:  odm
moongoon
An object-document mapper for MongoDB. 🌙
Stars: ✭ 41 (+51.85%)
Mutual labels:  odm

Lounge

Lounge

Simple Mongoose-inspired ODM for Couchbase.

npm version build status stabdardjs License

Installation

npm install lounge

Overview

Lounge is a simple, somewhat opinionated, Mongoose-inspired ODM for Couchbase. Main goal is to provide modeling tool framework for working with Couchbase databases in an asynchronous environment of Node.js.

var lounge = require('lounge')
lounge.connect({
  connectionString: 'couchbase://127.0.0.1',
  bucket: 'lounge_test'
})

var schema = lounge.schema({ name: String })
var Cat = lounge.model('Cat', schema)

var kitty = new Cat({ name: 'Zildjian' })
kitty.save(function (err) {
  if (err) // ...
  console.log('meow')
})

Features:

  • Schema definition
  • Strict modeling based on schema
  • Schema extension
  • Automatic type validation and custom validation
  • Document upsert and removal
  • Embedded (referenced) documents
  • Automatic and manual population of embedded (referenced) document
  • Middleware including pre and post hooks
  • Indexing using reference lookup documents
  • Promise support

Outside of the scope of this module:

  • Document and view management. There are too many patterns and ways of performing document and view management and view lookup that it is impractical to accommodate anything sane within a simple ODM. This can easily be expanded on top of Lounge.
  • View queries. For same reasons this falls outside of the scope of Lounge.
  • N1QL index management and N1QL queries. For the same reasons this falls outside of the scope of this library.
  • Full Text Search index management and FTL queries. For the same reasons this falls outside of the scope of this library.
  • Automatic document removal on key change. That is if a document key property changes, the new document is saved under the new key. The old document sticks around under the old key. There are too many implications if we start automatically handling document removal in this scenario. This should be handled by the user of this module. In most use cases this should not really be an issue.

Documentation

Tests

Module automated tests can be run using npm test command. The tests are executed using Couchbase mocking. To run tests against an actual local database create a bucket lounge_test and remove LOUNGE_COUCHBASE_MOCK=true from test script property in package.json.

Credits

Lots of code and design inspired by Mongoose. Icon made by Cursor Creative from www.flaticon.com is licensed by CC 3.0 BY

License

Copyright 2015 - 2017 Bojan D.

Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].