Edit File: kinterbasdb.cpython-37.pyc
B ��4]� � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ dd lm Z G d d� de�ZG dd � d ee j �ZG dd� dee j�ZG dd� de�ZG dd� de�ZeZdS )aK .. 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 � N)�match� )� FBDialect)�FBExecutionContext� )�types)�utilc @ s e Zd Zdd� ZdS )�_kinterbasdb_numericc C s dd� }|S )Nc S s t | tj�rt| �S | S d S )N)� isinstance�decimalZDecimal�str)�value� r �[/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/dialects/firebird/kinterbasdb.py�process3 s z4_kinterbasdb_numeric.bind_processor.<locals>.processr )�self�dialectr r r r �bind_processor2 s z#_kinterbasdb_numeric.bind_processorN)�__name__� __module__�__qualname__r r r r r r 1 s r c @ s e Zd ZdS )�_FBNumeric_kinterbasdbN)r r r r r r r r <