UNKNOWN
Project description
Flask SQLAlchemy Session
========================
This is a Database Session storage interface for Flask with SQLAlchemy
How to use
----------
First you will have to create the sessions table
::
CREATE TABLE sessions (
session_id CHAR(129) UNIQUE NOT NULL,
atime TIMESTAMP,
data TEXT);
Then you will have to connect the interface to your Flask application ::
from FlaskSQLAlchemySession import set_db_session_interface
application.config['SQLALCHEMY_DATABASE_URI'] = "[your-sqlalchemy-db-uri]"
set_db_session_interface(application)
Requirements
------------
* Flask
* Flask-SQLAlchemy
========================
This is a Database Session storage interface for Flask with SQLAlchemy
How to use
----------
First you will have to create the sessions table
::
CREATE TABLE sessions (
session_id CHAR(129) UNIQUE NOT NULL,
atime TIMESTAMP,
data TEXT);
Then you will have to connect the interface to your Flask application ::
from FlaskSQLAlchemySession import set_db_session_interface
application.config['SQLALCHEMY_DATABASE_URI'] = "[your-sqlalchemy-db-uri]"
set_db_session_interface(application)
Requirements
------------
* Flask
* Flask-SQLAlchemy
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for Flask-SQLAlchemySession-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ab95117eb3374e9a44c7c95045867a8fbc80b58f79b547cb9e832f0957eeb25 |
|
MD5 | 1e7f80c49d7f7506d24affdf1c6cfd5c |
|
BLAKE2b-256 | 3cc692120de1d59d2deb4de82942cfc81403deb24b504499327e4adae2dc7239 |