Coder Social home page Coder Social logo

couchbase-orm's Introduction

couchbase-orm's People

Contributors

slash4 avatar stakach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

couchbase-orm's Issues

MyModel.find_by_x(val).count seems to always return the global, unfiltered count

Hi @stakach , I'm playing with this lib and everything works nicely except 2 strange things :

  • When using find_by helpers, count seems to always return the global, unfiltered count, even if there's no result matching the filter.
  • If we try to use built-in reducers like _count, it's not possible to read the result :
    FFI::NullPointerError: invalid memory read at address=0x00000000000000 from /usr/local/bundle/gems/libcouchbase-0.1.0/lib/libcouchbase/query_view.rb:98:in []'`

Any thoughts ?

Couchbase version

Hello,
I try to use couchbase-orm.
I have some question to run it.
Which is the version couchbase this library is based ? And how configure couchbase bucket and user.
Best Regards
Maxime

N1QL query

Hi!

Is it possible to execute an N1QL query using this library?

libcouchbase not building correctly

Hi, I experience some problems with libcouchbase which seems to build correctly :

gem install libcouchbase Building native extensions. This could take a while... Successfully installed libcouchbase-0.1.0 Parsing documentation for libcouchbase-0.1.0 Installing ri documentation for libcouchbase-0.1.0 Done installing documentation for libcouchbase after 17 seconds 1 gem installed

but when I try to start my rails app :

rails c /Users/alexcentar/.rvm/gems/ruby-2.2.6/gems/ffi-1.9.17/lib/ffi/library.rb:147:in block in ffi_lib': Could not open library '/Users/alexcentar/.rvm/gems/ruby-2.2.6/gems/libcouchbase-0.1.0/ext/libcouchbase/build/lib/libcouchbase.dylib': dlopen(/Users/alexcentar/.rvm/gems/ruby-2.2.6/gems/libcouchbase-0.1.0/ext/libcouchbase/build/lib/libcouchbase.dylib, 5): image not found (LoadError)`

Indeed, no file can be found in the build folder. Any Idea why ?

Generator behavior

It overrides rails g scaffold in a strange way. It prevents model to be generated by ActiveRecord(if it's included to app) but doesn't generate its own model.

Because ActiveRecord is significantly more popular than couch for rails environment nowadays, maybe it makes sense to leave generator untouched, so those who what to add couch alongside good ol' relational DB didn't have issues with commenting/uncommenting this dependency when they need to generate something?

It's not something urgent or very important, just my 2 cents.

Compatibility with modern version

Can we make it compatible with the modern version of couchbase?
For now, I encountered that views don't work for couchbase 4.x and 5.x out of the box. It fails with {"error":"not_found","reason":"Design document _design/funnel not found"}

If you lost interest in maintaining it, I could/would like to contribute and figure it myself, but at least can you please make CI config work correctly and fail because of test issues, not because of deps? I guess you as the creator can make it much faster than a complete stranger like me.

Thanks, Yar
/cc @stakach

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.