Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(0)  |  Derive(19)  |  Import(2)

src/l/u/LuoYunCloud-HEAD/lyweb/lib/SQLAlchemy-0.8.2/examples/versioning/test_versioning.py   LuoYunCloud(Download)
from unittest import TestCase
from sqlalchemy.ext.declarative import declarative_base
from history_meta import Versioned, versioned_session
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey
from sqlalchemy.orm import clear_mappers, sessionmaker, deferred, relationship
        class SomeClass(Versioned, Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))
        class SomeClass(Versioned, Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))
        class SomeClass(Versioned, Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))
        class BaseClass(Versioned, Base, ComparableEntity):
            __tablename__ = 'basetable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))

src/s/q/SQLAlchemy-0.9.4/examples/versioned_history/test_versioning.py   SQLAlchemy(Download)
"""Unit tests illustrating usage of the ``history_meta.py`` module functions."""
 
from unittest import TestCase
from sqlalchemy.ext.declarative import declarative_base
from .history_meta import Versioned, versioned_session
        class SomeClass(Versioned, self.Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))
        class SomeClass(Versioned, self.Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))
        class SomeClass(Versioned, self.Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            name = Column(String(50))
        class SomeClass(Versioned, self.Base, ComparableEntity):
            __tablename__ = 'sometable'
 
            id = Column(Integer, primary_key=True)
            boole = Column(Boolean, default=False)