관리-도구
편집 파일: pymssql.cpython-311.pyc
� �܋f� � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ dd lm Z G d � dej � � Z G d� d e� � Z G d� de� � Z e ZdS )aK .. dialect:: mssql+pymssql :name: pymssql :dbapi: pymssql :connectstring: mssql+pymssql://<username>:<password>@<freetds_name>/?charset=utf8 pymssql is a Python module that provides a Python DBAPI interface around `FreeTDS <http://www.freetds.org/>`_. .. note:: pymssql is currently not included in SQLAlchemy's continuous integration (CI) testing. Modern versions of this driver worked very well with SQL Server and FreeTDS from Linux and were highly recommended. However, pymssql is currently unmaintained and has fallen behind the progress of the Microsoft ODBC driver in its support for newer features of SQL Server. The latest official release of pymssql at the time of this document is version 2.1.4 (August, 2018) and it lacks support for: 1. table-valued parameters (TVPs), 2. ``datetimeoffset`` columns using timezone-aware ``datetime`` objects (values are sent and retrieved as strings), and 3. encrypted connections (e.g., to Azure SQL), when pymssql is installed from the pre-built wheels. Support for encrypted connections requires building pymssql from source, which can be a nuisance, especially under Windows. The above features are all supported by mssql+pyodbc when using Microsoft's ODBC Driver for SQL Server (msodbcsql), which is now available for Windows, (several flavors of) Linux, and macOS. � N� )� MSDialect)�MSIdentifierPreparer� )� processors)�types)�utilc � � e Zd Zd� ZdS )�_MSNumeric_pymssqlc �j � | j st j S t j � | ||� � S �N)� asdecimalr �to_float�sqltypes�Numeric�result_processor)�self�dialect�type_s �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/mssql/pymssql.pyr z#_MSNumeric_pymssql.result_processor4 s1 � ��~� K��&�&��#�4�4�T�7�E�J�J�J� N)�__name__� __module__�__qualname__r � r r r r 3 s( � � � � � �K� K� K� K� Kr r c � � � e Zd Z� fd�Z� xZS )�MSIdentifierPreparer_pymssqlc �f �� t t | � � � |� � d| _ d S )NF)�superr �__init__�_double_percents)r r � __class__s �r r z%MSIdentifierPreparer_pymssql.__init__<