Metadata-Version: 1.1
Name: flask-sqlacodegen
Version: 1.1.6.0
Summary: Automatic model code generator for SQLAlchemy with Flask support
Home-page: UNKNOWN
Author: Kamil Sindi
Author-email: UNKNOWN
License: MIT
Description: flask-sqlacodegen
        =================
        
        Fork of <a href="https://pypi.python.org/pypi/sqlacodegen">sqlacodegen</a> by Alex Gronholm. Based off of version 1.1.6.
        
        What's different:
        * Use the command `flask-sqlacodgen` instead of `sqlacodegen`.
        * Support for Flask-SQLAlchemy syntax using `--flask` option:
          - SQLAlchemy class is instantiated (i.e. `db = SQLAlchemy()`).
          - Flask-SQLAlchemy columns are used (e.g. `db.Integer`).
          - Metadata is only implicit in tables.
        * Defaults to generating backrefs in relationships. `--nobackref` still included as option in case backrefs are not wanted. 
        * Naming of backrefs is class name in snake_case (as opposed to CamelCase) and is pluralized if it's Many-to-One or Many-to-Many using <a href="https://pypi.python.org/pypi/inflect">inflect</a>.
        * Generate explicit primary joins. I deal with pretty complicated tables that need explicit primary joins.
        * If column has a server_default set it to `FetchValue()` instead of trying to determine what that value is. Original code did not set the right server defaults in my setup.
        * `--ignore-cols` ignores special columns when generating association tables. Original code requires all columns to be foreign keys in order to generate association table. Example: `--ignore-cols id,inserted,updated`.
        
        ## Install
        
        With pip:
        ```
        pip install flask-sqlacodegen
        ```
        
        Without pip:
        ```
        git clone https://github.com/ksindi/flask-sqlacodegen.git
        cd flask-sqlacodegen/
        python setup.py install
        ```
        
Keywords: sqlalchemy,flask-sqlacodegen,sqlacodegen
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Environment :: Console
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Code Generators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
