Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to write a custom adapter #262

Open
ernestlessenger opened this issue Jul 15, 2015 · 1 comment
Open

How to write a custom adapter #262

ernestlessenger opened this issue Jul 15, 2015 · 1 comment

Comments

@ernestlessenger
Copy link

I have written a custom Couchbase adapter, and would like to use it instead of one of the built-in adapters. How can I configure the new adapter as the default Adapter for model?

@mde
Copy link
Contributor

mde commented Jul 16, 2015

This is awesome. Could you submit this with a PR, so we can bundle this adapter with all the others? (We would need it passing all the shared adapter tests of course.)

Use setDefaultAdapter for this: https://github.com/geddy/model/blob/master/lib/index.js#L910

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants