Metadata-Version: 1.1
Name: Solution
Version: 1.6.2
Summary: Implements an easy-to-use bridge to SQLAlchemy
Home-page: http://github.com/lucuma/solution
Author: Juan-Pablo Scaletti
Author-email: juanpablo@lucumalabs.com
License: MIT license (http://www.opensource.org/licenses/mit-license.php)
Description: ==========
        Solution
        ==========
        
        Example::
        
            from solution import SQLALchemy
        
            db = SQLALchemy('postgresql://scott:tiger@localhost:5432/mydatabase')
        
            class ToDo(db.Model):
                id = db.Column(db.Integer, primary_key=True)
                title = db.Column(db.String(60), nullable=False)
                done = db.Column(db.Boolean, nullable=False, default=False)
                pub_date = db.Column(db.DateTime, nullable=False,
                    default=datetime.utcnow)
        
            to_do = ToDo(title='Install Solution', done=True)
            db.add(to_do)
            db.commit()
        
            completed = db.query(ToDo).filter(ToDo.done == True).all()
        
        It does an automatic table naming (if no name is defined) and, to the base query class, adds the following methods:
        
        - first_or_notfound
        - get_or_notfound
        - to_json
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
