Couchbase Questions: Ruby SDK

Have a Question? Get it answered by our community

frankgarcia's picture
Asked 8 months 3 days ago
Latest activity 7 months 1 week ago

Dealing with document metadata

How can I retrieve a document metadata? With Bucket#get I can only get its value

Is there any function in the SDK that can convert a document CAS number into the REV string value and the other way around?

So far my poor man solution is having a view with all document ids as key,...

sbeyer's picture
Asked 10 months 2 weeks ago
Latest activity 7 months 1 week ago

Segmentation fault using couchbase-model

Hello,

my ruby interpreter crashes with a segmentation fault running a script written in ruby that accesses CouchBase server. The problem seems to come from couchbase-model, but I am pretty new to Ruby and to CouchBase, so I am not even sure about that. Pretty odd, the problem does not...

mmarini's picture
Asked 1 year 3 weeks ago
Latest activity 1 year 3 weeks ago

Segfault using Ruby2

I couldn't find anyone else having this issue, but I'm having trouble getting started with Couchbase using Ruby2. I'm getting a segmentation fault trying to access a document in the beer-sample bucket.

I'm using:
Ruby 2.0.0-p247 (using irb)
libcouchbase 2.1.1 (from homebrew)...

adam.habari's picture
Asked 1 year 3 weeks ago
Latest activity 1 year 3 weeks ago

Segfault using ruby SDK

Hi,

Wasn't sure where to ask about this. I wasn't able to find anything about it on google will appreciate your help.

I am using the ruby SDK

couchbase -v1.3.2
libcouchbase.so.2.0.9

I have a cluster with two nodes.
I am able to connect to bucket but when...

chin's picture
Asked 1 year 4 weeks ago
Latest activity 1 year 4 weeks ago

Unable to install couchbase gem on Windows

Hi, I'm trying to install the couchbase gem (https://github.com/couchbase/couchbase-ruby-client) on Windows Server 2012 with Ruby 2.0.0 but not having much luck. I keep getting the following error:

...
joeosburn's picture
Asked 1 year 4 weeks ago
Latest activity 1 year 4 weeks ago

How to ensure views get updated while running tests

I'm using couchbase-model with Ruby 1.9.3, and I'm running tests within RSpec.

I've created a User model, and I have a method called "authorize" that I want to use to validate logins, with an email and password. I also have a view called "by_email", which returns a key of the email...

oredi's picture
Asked 1 year 3 months ago
Latest activity 1 year 4 weeks ago

Ruby Couchbase & Couchbase Model working with Cucumber/ DatabaseCleaner

May I know if anyone has tried working on Cucumber/DatabaseCleaner and Rails/Couchbase.
I was able to run Cucumber with Rails/Couchbase but I wish to know if anyone knows how to use it with DatabaseCleaner to clean up the DB after running the scenarios. I understand that DatabaseCleaner...

javier4517's picture
Asked 1 year 3 months ago
Latest activity 1 year 3 months ago

Sample about how to retrieve Multiple Keys using the C client

Hello

We have been testing the C example in the couchbase documentation and so far so good.

We would like to be able to retrieve more than one Key in one call to lcb_get(...)

I was unable to find any example for the C client so we have wrote something which is working but I...

stijlfigurant's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

Beer Sample + Rails + Remote database servers

Hey Guys,
When running rails server, I keep getting a

couchbase.rb:58:in `initialize': Connection failed: Connection refused (error=0x18) (Couchbase::Error::Connect)

with the...

abhish_gl's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

getting Couchbase::Error::Timeout

I am trying to write a small ruby program to connect to couchbase server and create a document. I am able to connect to couchbase server but when I try to do a get/set/touch I get a timeout error - (Couchbase::Error::Timeout)
sample:
--------------------------------------
...

Pages