geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Configuring adapters manually #86

Open mjp0 opened 11 years ago

mjp0 commented 11 years ago

I'm using model without Getty and I can't figure out how to configure Riak to work as adapter. We're already using node-config so I would config.js and db.json seem a bit redundant in our case.

So how can I pass our Riak conf to the model?

mde commented 11 years ago

You can have a look at the integration tests to see how adapters get bootstrapped. But I think at the moment the Riak adapter has fallen behind and isn't working properly. There was a problem with DELETE operations and Riak's "tombstones" which may have been resolved now. I can take a look this weekend and see if it's been fixed.

mjp0 commented 11 years ago

Got it to work. I didn't require Riak's adapter separately before.

Yes, please take a look if you find the time. Not sure if the bug is related to https://github.com/basho/riak_kv/issues/518 but at least that's fixed now. Fortunately in our scenario we can avoid deleting.