ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ 4]c@sFdZddlmZddlmZdefdYZeZdS(s .. dialect:: firebird+fdb :name: fdb :dbapi: pyodbc :connectstring: firebird+fdb://user:password@host:port/path/to/db[?key=value&key=value...] :url: http://pypi.python.org/pypi/fdb/ fdb is a kinterbasdb compatible DBAPI for Firebird. .. versionchanged:: 0.9 - The fdb dialect is now the default dialect under the ``firebird://`` URL space, as ``fdb`` is now the official Python driver for Firebird. Arguments ---------- The ``fdb`` dialect is based on the :mod:`sqlalchemy.dialects.firebird.kinterbasdb` dialect, however does not accept every argument that Kinterbasdb does. * ``enable_rowcount`` - True by default, setting this to False disables the usage of "cursor.rowcount" with the Kinterbasdb dialect, which SQLAlchemy ordinarily calls upon automatically after any UPDATE or DELETE statement. When disabled, SQLAlchemy's ResultProxy will return -1 for result.rowcount. The rationale here is that Kinterbasdb requires a second round trip to the database when .rowcount is called - since SQLA's resultproxy automatically closes the cursor after a non-result-returning statement, rowcount must be called, if at all, before the result object is returned. Additionally, cursor.rowcount may not return correct results with older versions of Firebird, and setting this flag to False will also cause the SQLAlchemy ORM to ignore its usage. The behavior can also be controlled on a per-execution basis using the ``enable_rowcount`` option with :meth:`.Connection.execution_options`:: conn = engine.connect().execution_options(enable_rowcount=True) r = conn.execute(stmt) print r.rowcount * ``retaining`` - False by default. Setting this to True will pass the ``retaining=True`` keyword argument to the ``.commit()`` and ``.rollback()`` methods of the DBAPI connection, which can improve performance in some situations, but apparently with significant caveats. Please read the fdb and/or kinterbasdb DBAPI documentation in order to understand the implications of this flag. .. versionchanged:: 0.9.0 - the ``retaining`` flag defaults to ``False``. In 0.8 it defaulted to ``True``. .. seealso:: http://pythonhosted.org/fdb/usage-guide.html#retaining-transactions - information on the "retaining" flag. i(tFBDialect_kinterbasdbi(tutilt FBDialect_fdbcBs8eZeedZedZdZdZRS(cKs&tt|jd|d||dS(Ntenable_rowcountt retaining(tsuperRt__init__(tselfRRtkwargs((sS/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/fdb.pyREscCs tdS(Ntfdb(t __import__(tcls((sS/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/fdb.pytdbapiJscCst|jdd}|jdrGd|d|df|d<|d=n|j|jtj|dtg|fS(Ntusernametusertports%s/%sthostt type_conv(ttranslate_connect_argstgettupdatetqueryRtcoerce_kw_typetint(Rturltopts((sS/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/fdb.pytcreate_connect_argsNs cCs+d}|j}|j|}|j|S(sGet the version of the Firebird server used by a connection. Returns a tuple of (`major`, `minor`, `build`), three integers representing the version of the attached server. ig(t connectiontdb_infot_parse_version_info(RRtisc_info_firebird_versiontfbconntversion((sS/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/fdb.pyt_get_server_version_infoYs  ( t__name__t __module__tTruetFalseRt classmethodR RR!(((sS/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/fdb.pyRDs N(t__doc__t kinterbasdbRtRRtdialect(((sS/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/firebird/fdb.pyt>s*