Hello, I'm new to Flask and Elexir and I'm writing a small web app using Flask and jQueryMobile. I would like to use Elixir as backend database API instead of SQLAlchemy because it's so simple. I've implemented the small Flask app with a login popup that works and I have implemented the Elixir model file that works as well but independently of Flask.
I would now like to be able to use the Elixir model with my Flask app. Unfortunately I couldn't find any documentation or code example on line how to do so. One of the problem is with the session variable clash. One is instantiated by Flask to carry web session related information and one is instantiated by Elixir to carry db related session information. What I also would like to know is how the classes instances are managed. Could we keep the instantiated classes mapped to the db content across requests ? This is to use them as a cached version of db information. How do we ensure the cache doesn't overflow if the number of classes becomes too big. Considering this documentation: http://flask.pocoo.org/docs/patterns/sqlalchemy/ I see this piece of code @app.teardown_requestdef shutdown_session(exception=None): db_session.remove() Which I guess flushes the session objects in the session object. Could we avoid this ? -- You received this message because you are subscribed to the Google Groups "SQLElixir" group. To view this discussion on the web visit https://groups.google.com/d/msg/sqlelixir/-/ck-Vck9V5fUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en.
