/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
engine
/
up file
home
� 1��fc @ sL d d l Z d d l m Z d e f d � � YZ d e f d � � YZ d S( i����Ni ( t ABCt ConnectionCharacteristicc B sP e Z d Z d Z e Z e j d � � Z e j d � � Z e j d � � Z RS( s� An abstract base for an object that can set, get and reset a per-connection characteristic, typically one that gets reset when the connection is returned to the connection pool. transaction isolation is the canonical example, and the ``IsolationLevelCharacteristic`` implementation provides this for the ``DefaultDialect``. The ``ConnectionCharacteristic`` class should call upon the ``Dialect`` for the implementation of each method. The object exists strictly to serve as a dialect visitor that can be placed into the ``DefaultDialect.connection_characteristics`` dictionary where it will take effect for calls to :meth:`_engine.Connection.execution_options` and related APIs. .. versionadded:: 1.4 c C s d S( s@ Reset the characteristic on the connection to its default value.N( ( t selft dialectt dbapi_conn( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyt reset_characteristic$ t c C s d S( s6 set characteristic on the connection to a given value.N( ( R R R t value( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyt set_characteristic( R c C s d S( sX Given a DBAPI connection, get the current value of the characteristic. N( ( R R R ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyt get_characteristic, R ( ( t __name__t __module__t __doc__t __slots__t Falset transactionalt abct abstractmethodR R R ( ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyR s t IsolationLevelCharacteristicc B s) e Z e Z d � Z d � Z d � Z RS( c C s | j | � d S( N( t reset_isolation_level( R R R ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyR 7 s c C s | j | | � d S( N( t set_isolation_level( R R R R ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyR : s c C s | j | � S( N( t get_isolation_level( R R R ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyR = s ( R R t TrueR R R R ( ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyR 4 s ( R t utilR R R ( ( ( sT /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/characteristics.pyt <module> s (