Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make it easy to add any storage adaptor #1

Open
michaelcarter opened this issue Jan 22, 2016 · 1 comment
Open

Make it easy to add any storage adaptor #1

michaelcarter opened this issue Jan 22, 2016 · 1 comment

Comments

@michaelcarter
Copy link
Contributor

Currently all of the code for interacting with storage is located in helpers/fixtures.js. This is shitty, partly because the file is a mess, and partly because we're coupled very strongly to CouchDB as our only storage adaptor for no particular reason.

A better solution would be a folder of various storage adaptors that implement a common API truman can just plug into. This way new adaptors could be added easily and using them would just be a case of specifying which adaptor type you want to use in config.

@lukehansell
Copy link

👍
Though, why not make the adaptors external repos that can be included in when truman is initialised?

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

No branches or pull requests

2 participants