관리-도구
편집 파일: pyodbc.cpython-38.pyc
U -?�f� � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ dd lm Z dd l mZ ddlm Z G dd � d e�ZG dd� de�ZG dd� dee�ZeZdS )aH .. dialect:: mysql+pyodbc :name: PyODBC :dbapi: pyodbc :connectstring: mysql+pyodbc://<username>:<password>@<dsnname> :url: https://pypi.org/project/pyodbc/ .. note:: The PyODBC for MySQL dialect is **not tested as part of SQLAlchemy's continuous integration**. The recommended MySQL dialects are mysqlclient and PyMySQL. However, if you want to use the mysql+pyodbc dialect and require full support for ``utf8mb4`` characters (including supplementary characters like emoji) be sure to use a current release of MySQL Connector/ODBC and specify the "ANSI" (**not** "Unicode") version of the driver in your DSN or connection string. Pass through exact pyodbc connection string:: import urllib connection_string = ( 'DRIVER=MySQL ODBC 8.0 ANSI Driver;' 'SERVER=localhost;' 'PORT=3307;' 'DATABASE=mydb;' 'UID=root;' 'PWD=(whatever);' 'charset=utf8mb4;' ) params = urllib.parse.quote_plus(connection_string) connection_uri = "mysql+pyodbc:///?odbc_connect=%s" % params � N� )�MySQLDialect)�MySQLExecutionContext)�TIME� )�exc)�util)�PyODBCConnector)�Timec @ s e Zd Zdd� ZdS )�_pyodbcTIMEc C s dd� }|S )Nc S s | S �N� )�valuer r �P/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/dialects/mysql/pyodbc.py�process<