SQLAlchemy 0.3 Documentation

Multiple Pages | One Page
Version: 0.3.11 Last Updated: 10/14/07 15:20:01

module sqlalchemy.ext.proxy

class AutoConnectEngine(BaseProxyEngine)

An SQLEngine proxy that automatically connects when necessary.

def __init__(self, dburi, **kwargs)

Construct a new AutoConnectEngine.

def get_engine(self)
back to section top

class BaseProxyEngine(Executor)

Basis for all proxy engines.

def compiler(self, *args, **kwargs)

Override superclass behaviour.

This method is required to be present as it overrides the compiler method present in sql.Engine.

engine = property()
def execute_compiled(self, *args, **kwargs)

Override superclass behaviour.

This method is required to be present as it overrides the execute_compiled present in sql.Engine.

def get_engine(self)
def set_engine(self, engine)
def __getattr__(self, attr)

Provide proxying for methods that are not otherwise present on this BaseProxyEngine.

Note that methods which are present on the base class sql.Engine will not be proxied through this, and must be explicit on this class.

back to section top

class ProxyEngine(BaseProxyEngine)

Engine proxy for lazy and late initialization.

This engine will delegate access to a real engine set with connect().

def __init__(self, **kwargs)

Construct a new ProxyEngine.

def connect(self, *args, **kwargs)

Establish connection to a real engine.

def get_engine(self)
def set_engine(self, engine)
back to section top
Up: Generated Documentation | Previous: module sqlalchemy.ext.selectresults | Next: module sqlalchemy.ext.orderinglist