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

orm_adapter-couchbase

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orm_adapter-couchbase

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

OrmAdapterCouchbase

WARNING: This is not finished, and very early stage to see if this can work

Installation

Add this line to your application's Gemfile:

gem 'orm_adapter-couchbase'

And then execute:

$ bundle

Or install it yourself as:

$ gem install orm_adapter-couchbase

Usage

See the specs for details. The Couchbase ORM adapter relies on at least the all view to be present which should simple return all the object for a given type. This doesn't have great performance of course, like any full scan, so it's recommended to create additional views to query by other attributes. If you want to for example query a user by name, create a view for it.

class User < Couchbase::Model
  attribute :name
  view :by_name
end

Currently only single attributes are supported, but the idea is to support others via by_name_and_rating in the future.

ORM Adapter

"Provides a single point of entry for popular ruby ORMs. Its target audience is gem authors who want to support more than one ORM."

For more information see the orm_adapter project.

Development / Testing

This project is tested against orm_adapter to make sure it works as advertised.

To run the tests:

$ rake spec

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 28 Jul 2014

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