summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/oursql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-22 18:30:37 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-22 19:25:10 -0400
commitddab2d2351fc79138dcbe650c12f2e153dae4751 (patch)
treeb34b4e8eaca05337fe5615a9f67609cf765e592d /lib/sqlalchemy/dialects/mysql/oursql.py
parentb1146821aa8899ea8724c61ca3d48ba4928a1db4 (diff)
downloadsqlalchemy-ddab2d2351fc79138dcbe650c12f2e153dae4751.tar.gz
- more updates to the unicode mess to frame this in
as up-to-date recommendations as possible
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/oursql.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/oursql.py24
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/oursql.py b/lib/sqlalchemy/dialects/mysql/oursql.py
index f4eca4252..ae8abc321 100644
--- a/lib/sqlalchemy/dialects/mysql/oursql.py
+++ b/lib/sqlalchemy/dialects/mysql/oursql.py
@@ -16,29 +16,9 @@
Unicode
-------
-The ``use_unicode=0`` flag is **not** supported in OurSQL,
-nor is the ``utf8mb4`` charset.
+Please see :ref:`mysql_unicode` for current recommendations on unicode
+handling.
-oursql defaults to using ``utf8`` as the connection charset, but other
-encodings may be used instead. Like the MySQL-Python driver, unicode support
-can be completely disabled::
-
- # oursql sets the connection charset to utf8 automatically; all strings come
- # back as utf8 str
- create_engine('mysql+oursql:///mydb?use_unicode=0')
-
-To not automatically use ``utf8`` and instead use whatever the connection
-defaults to, there is a separate parameter::
-
- # use the default connection charset; all strings come back as unicode
- create_engine('mysql+oursql:///mydb?default_charset=1')
-
- # use latin1 as the connection charset; all strings come back as unicode
- create_engine('mysql+oursql:///mydb?charset=latin1')
-
-.. seealso::
-
- :ref:`mysql_unicode` - includes background on the ``'utf8'`` and ``'utf8mb4'`` charsets.
"""