-
Notifications
You must be signed in to change notification settings - Fork 301
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
Abstract away backend #66
Conversation
…ed to define a given model.
…elpers.py; infer collection name using infer_backend.
…lchemy specific functions (like get_or_create) as functions under the appropriate subclass of Backend.
…and SQLAlchemyBackendBase class.
Conflicts: CHANGES flask_restless/views.py
…instead of views.ModelView class.
As already said in #50, I really would like to see a more general backend so you are not tied up to databases explicitly. So a stack like this would be great:
There are many use cases, for example a RPC to REST mapper, a backend for an existing application without API or a caching backend between flask and the database (or any other backend). |
I think there are not many changes needed to achieve this generalization. The most important (but very easy) step is to change the terminology. You should start talking about resources and fields instead of models and columns. The I am missing an |
About the
Another word for |
I'm not totally convinced that it makes sense to turn this project into a generic library that works for all web frameworks/all database backends.
So although your suggestions are great, I probably won't pursue this line of work. But if you want to make a pull request with the proposed changes, I will of course consider it. |
I'm closing this as a "wont' fix", because I don't feel it is worth my time to pursue this goal. |
Adds abstraction layer for backend specific code, so that it is easier to add new backends later.