Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-couch

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-couch

An Ember.js adapter for Apache CouchDB

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

Build StatusLicense

Ember Couch

An ember-data kit for Apache CouchDB. A collection of adapters to work with CouchDB documents, attachments, revisions, and the changes feed. Based off of ember-couchdb-kit by Aleksey Zatvobor.

Version

Version 0.0.8 of this addon is tested to work with Ember 2.0.0 and Ember Data 2.0.0.

Installation and Setup

ember install ember-couch

In your adapters and serializers you must import then extend the adapter and serializer you wish to use from ember-couch. There are 3 adapters you can extend and 3 serializers you can extend. They are:

Adapters

  • DocumentAdapter
  • AttachmentAdapter
  • RevAdapter (experimental)

Serializers

  • DocumentSerializer
  • AttachmentSerializer
  • RevSerializer (experimental)

Example adapter:

import { DocumentAdapter } from 'ember-couch';

export default DocumentAdapter.extend({
   host: 'localhost:5984',
   db: 'boards'
});

Example serializer:

import { DocumentSerializer } from 'ember-couch';

export default DocumentSerializer.extend();

If you would like to work with the changes feed, just add this statement to the top of your route:

import { ChangesFeed } from "ember-couch";

Features

Some notable features:

  • natural findRecord/createRecord/deleteRecord functions;
  • document's attachments designed as hasMany relationship;
  • document's revisions designed as belongsTo and hasMany relationships;
  • ability to work with /_changes feeds;

For other features have a look at our example app located in tests/dummy/app

Contribution

See CONTRIBUTING.md

License

ember-couch source code is released under MIT-License. Check LICENSE.md for more details.

Keywords

FAQs

Package last updated on 03 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc