Metadata-Version: 1.1
Name: sqlalchemy-find
Version: 0.1
Summary: Syntactic sugar for SQLAlchemy: a Storm ORM-like find method
Home-page: https://bitbucket.org/ollyc/sqlalchemy-find
Author: Oliver Cope
Author-email: oliver@redgecko.org
License: BSD
Description: A find() method for SQLAlchemy
        
        Usage::
        
            from sqlalchemy_find import SessionWithFind, QueryWithFind
            from sqlalchemy.orm import sessionmaker
        
            # Configure engine and sessionmaker
            engine = create_engine('postgresql://scott:tiger@localhost/')
            Session = sessionmaker(bind=engine,
                                   class_=SessionWithFind,
                                   query_cls=QueryWithFind)
        
            # Create a session
            session = Session()
        
            # Equivalent to:
            #   query = session.query(MyClass)
            #   query = query.filter(MyClass.name == 'foo')
            #   query = query.filter_by(is_active=True)
            query = session.find(MyClass, MyClass.name == 'foo', is_active=True)
        
            # Equivalent to:
            #   ob = session.query(MyClass).get(21)
            ob = session.get(MyClass, id=21)
        
        
        
        .. Copyright 2014 Oliver Cope
        ..
        .. Licensed under the Apache License, Version 2.0 (the "License");
        .. you may not use this file except in compliance with the License.
        .. You may obtain a copy of the License at
        ..
        ..     http://www.apache.org/licenses/LICENSE-2.0
        ..
        .. Unless required by applicable law or agreed to in writing, software
        .. distributed under the License is distributed on an "AS IS" BASIS,
        .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        .. See the License for the specific language governing permissions and
        .. limitations under the License.
        
        CHANGELOG
        =========
        
        Version 0.1
        
        - Initial release
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
