Module Expr Str TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad vararg kwarg body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A 
flask_store.sqlalchemy
======================

Custom SQLAlchemy types for handling Flask-Store instances in SQLAlchemy.
 N/A N/A N/A sqlalchemy N/A SQLALCHEMY_INSTALLED True N/A N/A N/A ImportError N/A N/A SQLALCHEMY_INSTALLED False flask_store Provider flask_store.exceptions NotConfiguredError werkzeug.datastructures FileStorage FlaskStoreType N/A N/A N/A sqlalchemy types TypeDecorator N/A N/A  A SQL Alchemy custom type which will save a file using the Flask
    Application Configured Store Provider and saves the relative path the the
    database.

    Also creates a fresh provider instance when accessing the data attribute
    from an instance.

    Example
    -------
    .. sourcecode:: python

        from flask import Flask
        from flask_sqlalchemy import SQLAlchemy
        from flask_store import Store
        from flask_store.sqla import FlaskStoreType

        app = Flask(__name__)

        db = SQLAlchemy(app)
        store = Store(app)

        class MyModel(db.Model):
            field = db.Column(FlaskStoreType(location='/some/place'))
     N/A impl N/A N/A sqlalchemy Unicode 256 __init__ N/A N/A self max_length location N/A 256 None args kwargs N/A N/A  Contructor, sets the location of the file relative from the
        base path.
         N/A N/A SQLALCHEMY_INSTALLED N/A N/A N/A NotConfiguredError You need to install sqlalchemy to use the FlaskStoreType N/A N/A self location location N/A N/A N/A N/A super FlaskStoreType self __init__ args kwargs N/A N/A self impl N/A N/A N/A sqlalchemy types Unicode max_length N/A process_bind_param N/A N/A self value dialect N/A N/A N/A  Called when setting the value be stored in the database field, this
        will be the files relative file path.

        Arguments
        ---------
        value : werkzeug.datastructures.FileStorage
            The uploaded file to save
        dialect : sqlalchemy.engine.interfaces.Dialect
            The dialect

        Returns
        -------
        str
            The files realtive path on what ever storage backend defined in the
            Flask Application configuration
         N/A N/A N/A isinstance value FileStorage N/A N/A None N/A provider N/A Provider value location N/A self location N/A N/A N/A provider save N/A N/A provider relative_path N/A process_result_value N/A N/A self value dialect N/A N/A N/A  Called when accessing the value from the database and returning the
        appropriate provider file wrapper.

        Arguments
        ---------
        value : str
            The stored relative path in the database
        dialect : sqlalchemy.engine.interfaces.Dialect
            The dialect

        Returns
        -------
        obj
            An instance of the Store Provider class
         N/A provider N/A Provider value location N/A self location N/A provider N/A N/A