git.iko.soy/typeable/postgresql-simple
on master help sign in
Documentation reorganization
8b3d9feLeon P Smith
src/Database/PostgreSQL/Simple.hs+5−5
@@ -55,8 +55,7 @@ module Database.PostgreSQL.Simple
55 -- $types
55 -- $types
56
56
57 -- * Types
57 -- * Types
58− Base.ConnectInfo(..)
59− , Connection
58+ Connection
60 , Query
59 , Query
61 , ToRow
60 , ToRow
62 , FromRow
61 , FromRow
@@ -71,11 +70,12 @@ module Database.PostgreSQL.Simple
71 , QueryError(qeMessage, qeQuery)
70 , QueryError(qeMessage, qeQuery)
72 , ResultError(errSQLType, errHaskellType, errMessage)
71 , ResultError(errSQLType, errHaskellType, errMessage)
73 -- * Connection management
72 -- * Connection management
74− , Base.connect
75 , Base.connectPostgreSQL
73 , Base.connectPostgreSQL
76− , Base.postgreSQLConnectionString
77− , Base.defaultConnectInfo
78 , Base.close
74 , Base.close
75+ , Base.connect
76+ , Base.ConnectInfo(..)
77+ , Base.defaultConnectInfo
78+ , Base.postgreSQLConnectionString
79 -- * Queries that return results
79 -- * Queries that return results
80 , query
80 , query
81 , query_
81 , query_
src/Database/PostgreSQL/Simple/Internal.hs+2−2
@@ -157,7 +157,7 @@ connect = connectPostgreSQL . postgreSQLConnectionString
157-- This attempts to connect to database named @postgres@ with
157-- This attempts to connect to database named @postgres@ with
158-- user @postgres@ and password @secret \' \\ pw@. Backslash
158-- user @postgres@ and password @secret \' \\ pw@. Backslash
159-- characters will have to be double-quoted in literal Haskell strings,
159-- characters will have to be double-quoted in literal Haskell strings,
160−-- of course. Omitting @dbname@ and @user@ with both default to the
160+-- of course. Omitting @dbname@ and @user@ will both default to the
161-- system username that the client process is running as.
161-- system username that the client process is running as.
162--
162--
163-- Omitting @password@ will default to an appropriate password found
163-- Omitting @password@ will default to an appropriate password found
@@ -175,7 +175,7 @@ connect = connectPostgreSQL . postgreSQLConnectionString
175-- database user, and database sharing a common name, with permissions
175-- database user, and database sharing a common name, with permissions
176-- granted to the user on the database.
176-- granted to the user on the database.
177--
177--
178−-- On Windows, in addition you will either need the @pg_hba.conf@
178+-- On Windows, in addition you will either need @pg_hba.conf@
179-- to specify the use the @trust@ authentication method for the
179-- to specify the use the @trust@ authentication method for the
180-- the connection, which may not be appropriate for multiuser
180-- the connection, which may not be appropriate for multiuser
181-- or production machines, or you will need to use a @pgpass@ file
181-- or production machines, or you will need to use a @pgpass@ file