SQLAlchemy 0.3 Documentation

Version: 0.3.5 Last Updated: 03/18/07 18:39:07

module sqlalchemy.ext.proxy

class AutoConnectEngine(BaseProxyEngine)

An SQLEngine proxy that automatically connects when necessary.

def __init__(self, dburi, **kwargs)
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)
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)
def connect(self, *args, **kwargs)

Establish connection to a real engine.

def get_engine(self)
def set_engine(self, engine)
back to section top