File: //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/kinterbasdb.pyo
�
��4]c           @   s�   d  Z  d d l Z d d l m Z d d l m Z d d l m Z d d l m Z	 d d	 l m
 Z
 d
 e f d �  �  YZ d e e	 j
 f d
 �  �  YZ d e e	 j f d �  �  YZ d e f d �  �  YZ d e f d �  �  YZ e Z d S(   sK  
.. dialect:: firebird+kinterbasdb
    :name: kinterbasdb
    :dbapi: kinterbasdb
    :connectstring: firebird+kinterbasdb://user:password@host:port/path/to/db[?key=value&key=value...]
    :url: http://firebirdsql.org/index.php?op=devel&sub=python
Arguments
----------
The Kinterbasdb backend accepts the ``enable_rowcount`` and ``retaining``
arguments accepted by the :mod:`sqlalchemy.dialects.firebird.fdb` dialect.
In addition, it also accepts the following:
* ``type_conv`` - select the kind of mapping done on the types: by default
  SQLAlchemy uses 200 with Unicode, datetime and decimal support.  See
  the linked documents below for further information.
* ``concurrency_level`` - set the backend policy with regards to threading
  issues: by default SQLAlchemy uses policy 1.  See the linked documents
  below for further information.
.. seealso::
    http://sourceforge.net/projects/kinterbasdb
    http://kinterbasdb.sourceforge.net/dist_docs/usage.html#adv_param_conv_dynamic_type_translation
    http://kinterbasdb.sourceforge.net/dist_docs/usage.html#special_issue_concurrency
i����N(   t   matchi   (   t	   FBDialect(   t   FBExecutionContexti   (   t   types(   t   utilt   _kinterbasdb_numericc           B   s   e  Z d  �  Z RS(   c         C   s
   d �  } | S(   Nc         S   s$   t  |  t j � r t |  � S|  Sd  S(   N(   t
   isinstancet   decimalt   Decimalt   str(   t   value(    (    s[   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/kinterbasdb.pyt   process3   s    
(    (   t   selft   dialectR   (    (    s[   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/kinterbasdb.pyt   bind_processor2   s    	(   t   __name__t
   __module__R   (    (    (    s[   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/kinterbasdb.pyR   1   s   t   _FBNumeric_kinterbasdbc           B   s   e  Z RS(    (   R   R   (    (    (    s[   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/kinterbasdb.pyR   <