You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1000 B

13 years ago
# mysql/pymysql.py
12 years ago
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
13 years ago
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Support for the MySQL database via the pymysql adapter.
pymysql is available at:
http://code.google.com/p/pymysql/
Connecting
----------
Connect string::
mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
MySQL-Python Compatibility
--------------------------
12 years ago
The pymysql DBAPI is a pure Python port of the MySQL-python (MySQLdb) driver,
and targets 100% compatibility. Most behavioral notes for MySQL-python apply to
13 years ago
the pymysql driver as well.
"""
12 years ago
from sqlalchemy.dialects.mysql.mysqldb import MySQLDialect_mysqldb
13 years ago
12 years ago
class MySQLDialect_pymysql(MySQLDialect_mysqldb):
13 years ago
driver = 'pymysql'
description_encoding = None
12 years ago
@classmethod
def dbapi(cls):
return __import__('pymysql')
13 years ago
12 years ago
dialect = MySQLDialect_pymysql