diff options
author | Tony Locke <tlocke@tlocke.org.uk> | 2014-05-12 21:47:18 +0100 |
---|---|---|
committer | Tony Locke <tlocke@tlocke.org.uk> | 2014-05-21 19:17:41 +0100 |
commit | 32bae567fe487ca78d23d775792e6dbd7657ba53 (patch) | |
tree | 5be465a5ba1faafa898fd15b268efcf5b603fd8f /lib/sqlalchemy/dialects/postgresql/pg8000.py | |
parent | 996de05ee96b62943efb4bd9495127b40aaba4d5 (diff) | |
download | sqlalchemy-32bae567fe487ca78d23d775792e6dbd7657ba53.tar.gz |
Updated doc string for postgresql+pg8000 dialect
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pg8000.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pg8000.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pg8000.py b/lib/sqlalchemy/dialects/postgresql/pg8000.py index 01a250f9a..788bfc5c8 100644 --- a/lib/sqlalchemy/dialects/postgresql/pg8000.py +++ b/lib/sqlalchemy/dialects/postgresql/pg8000.py @@ -9,21 +9,19 @@ :name: pg8000 :dbapi: pg8000 :connectstring: postgresql+pg8000://user:password@host:port/dbname[?key=value&key=value...] - :url: http://pybrary.net/pg8000/ + :url: https://pythonhosted.org/pg8000/ Unicode ------- -pg8000 requires that the postgresql client encoding be -configured in the postgresql.conf file in order to use encodings -other than ascii. Set this value to the same value as the -"encoding" parameter on create_engine(), usually "utf-8". +When communicating with the server, pg8000 uses the character set that the +server asks it to use (the client encoding). By default the client encoding is +the database's character set (chosen when the database is created), but the +client encoding can be changed in a number of ways (eg. setting CLIENT_ENCODING +in postgresql.conf). -Interval --------- - -Passing data from/to the Interval type is not supported as of -yet. +Set the "encoding" parameter on create_engine(), to the same as the client +encoding, usually "utf-8". """ from ... import util, exc |