git.iko.soy/typeable/postgresql-simple
on master help sign in
Mention environment variables in documentation of connectPostgreSQL
b004e3dLeon P Smith
src/Database/PostgreSQL/Simple/Internal.hs+5−2
@@ -155,8 +155,11 @@ connect = connectPostgreSQL . postgreSQLConnectionString
155
155
156-- | Attempt to make a connection based on a libpq connection string.
156-- | Attempt to make a connection based on a libpq connection string.
157-- See <http://www.postgresql.org/docs/9.3/static/libpq-connect.html#LIBPQ-CONNSTRING>
157-- See <http://www.postgresql.org/docs/9.3/static/libpq-connect.html#LIBPQ-CONNSTRING>
158−-- for more information. Here is an example with some
158+-- for more information. Also note that environment variables also affect
159+-- parameters not provided, parameters provided as the empty string, and a
160+-- few other things; see <http://www.postgresql.org/docs/9.3/static/libpq-envars.html>
159−-- of the most commonly used parameters:
161+-- for details. Here is an example with some of the most commonly used
162+-- parameters:
160--
163--
161-- > host='db.somedomain.com' port=5432 ...
164-- > host='db.somedomain.com' port=5432 ...
162--
165--