Skip to content

builderchad/couchbone.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couchbone.js

AMD Module: Couchbone

A rewrite and simplification of jquery.couch.js combined with couch features for backbone.js

NOTE: Supports CouchDB 1.2+ only

Code and ideas from these other libs:

Couchbone - Module containing constructors for CouchDB connection and changes feed objects Couchbone.DB - Factory which creates flyweight singletons (DbFly) for each unique db connection (Couchbone.DbFly - Flyweight objects for database specific services) (Couchbone.DbFly.prototype.admin - Admin functions are hidden in the 'admin' object within the prototype. e.g. mydb.admin.allDesignDocs()) Couchbone.ChangesFeed - CouchDB _changes publisher/subscribe service (use 'new')

Creates Couchbone.Model, Couchbone.Collection and Couchbone.CompositeCollection

Dependencies

Current features

  • CRUD on models
  • Couchdb's 'show' and 'update' functions supported
  • Read on collections
  • Composite couchdb views handled by CompositeCollection using simple ODM
  • Changes feed by server side filter
  • Flyweight instances per database connection
  • (TODO: generic 'by' filter supported semi-automatically)
  • (TODO: Add support for a generic id filter in the "global feed handler")

Test Suite

Usage

About

A backbone.js/couchdb library and feed handler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published