git.iko.soy/typeable/postgresql-simple
on master help sign in
Delete Trailing Whitespace
commit23a43285adf882840a17c00991a4071240cd12e9 authorLeon P Smith <leon@melding-monads.com> dateThu 4 Jul 2013, 08:45 (13 years ago) parent9a6b2be
4 files changed+10−11
src/Database/PostgreSQL/Simple.hs+2−2 src/Database/PostgreSQL/Simple/Arrays.hs−1 src/Database/PostgreSQL/Simple/Copy.hs+7−7 src/Database/PostgreSQL/Simple/FromRow.hs+1−1
src/Database/PostgreSQL/Simple.hs+2−2
@@ -482,11 +482,11 @@ doFold FoldOptions{..} conn _template q a0 f = do
482482 where
483483 declare = do
484484 name <- newTempName conn
485− _ <- execute_ conn $ mconcat
485+ _ <- execute_ conn $ mconcat
486486 [ "DECLARE ", name, " NO SCROLL CURSOR FOR ", q ]
487487 return name
488488 fetch (Query name) = query_ conn $
489− Query (toByteString (fromByteString "FETCH FORWARD "
489+ Query (toByteString (fromByteString "FETCH FORWARD "
490490 <> integral chunkSize
491491 <> fromByteString " FROM "
492492 <> fromByteString name
src/Database/PostgreSQL/Simple/Arrays.hs−1
@@ -90,4 +90,3 @@ esc = B.concatMap f
9090 f '\\' = "\\\\"
9191 f c = B.singleton c
9292 -- TODO: Implement easy performance improvements with unfoldr.
93−
src/Database/PostgreSQL/Simple/Copy.hs+7−7
@@ -16,7 +16,7 @@
1616-- or @COPY TO STDOUT@ query as documented in the link above. Then
1717-- call @getCopyData@ repeatedly until it returns 'CopyOutDone' in
1818-- the former case, or in the latter, call @putCopyData@ repeatedly
19−-- and then finish by calling either @putCopyEnd@ to proceed or
19+-- and then finish by calling either @putCopyEnd@ to proceed or
2020-- @putCopyError@ to abort.
2121--
2222-- You cannot issue another query on the same connection while a copy
@@ -50,7 +50,7 @@ import Database.PostgreSQL.Simple
5050import Database.PostgreSQL.Simple.Types
5151import Database.PostgreSQL.Simple.Internal
5252
53−-- | Issue a query that changes a connection's state to @CopyIn@
53+-- | Issue a query that changes a connection's state to @CopyIn@
5454-- (via a @COPY FROM STDIN@ query) or @CopyOut@ (via @COPY TO STDOUT@)
5555-- query. Performs parameter subsitution.
5656
@@ -59,7 +59,7 @@ copy conn template qs = do
5959 q <- formatQuery conn template qs
6060 doCopy "Database.PostgreSQL.Simple.Copy.copy" conn template q
6161
62−-- | Issue a query that changes a connection's state to @CopyIn@
62+-- | Issue a query that changes a connection's state to @CopyIn@
6363-- (via a @COPY FROM STDIN@ query) or @CopyOut@ (via @COPY TO STDOUT@)
6464-- query. Does not perform parameter subsitution.
6565
@@ -85,7 +85,7 @@ doCopy funcName conn template q = do
8585 PQ.FatalError -> throwResultError funcName result status
8686
8787data CopyOutResult
88− = CopyOutRow !B.ByteString -- ^ Data representing either exactly
88+ = CopyOutRow !B.ByteString -- ^ Data representing either exactly
8989 -- one row of the result, or header
9090 -- or footer data depending on format.
9191 | CopyOutDone {-# UNPACK #-} !Int64 -- ^ No more rows, and a count of the
@@ -93,7 +93,7 @@ data CopyOutResult
9393 deriving (Eq, Typeable, Show)
9494
9595-- | A connection must be in the @CopyOut@ state in order to call this
96−-- function, via a @COPY TO STDOUT@ query. If this returns a 'CopyOutRow',
96+-- function, via a @COPY TO STDOUT@ query. If this returns a 'CopyOutRow',
9797-- the connection remains in the @CopyOut@ state, if it returns 'CopyOutDone',
9898-- then the connection has reverted to the ready state.
9999
@@ -135,9 +135,9 @@ getCopyData conn = withConnection conn loop
135135
136136-- | A connection must be in the @CopyIn@ state in order to call this
137137-- function, via a @COPY FROM STDIN@ query. The connection remains
138−-- in a @CopyIn@ state after this function is called. Note that
138+-- in a @CopyIn@ state after this function is called. Note that
139139-- the data does not need to represent a single row, or even an
140−-- integral number of rows. The net result of
140+-- integral number of rows. The net result of
141141-- @putCopyData conn a >> putCopyData conn b@
142142-- is the same as @putCopyData conn c@ whenever @c == BS.append a b@.
143143
src/Database/PostgreSQL/Simple/FromRow.hs+1−1
@@ -70,7 +70,7 @@ nfields :: PQ.Result -> PQ.Column
7070nfields result = unsafeDupablePerformIO (PQ.nfields result)
7171
7272getTypeInfoByCol :: Row -> PQ.Column -> Conversion TypeInfo
73−getTypeInfoByCol Row{..} col =
73+getTypeInfoByCol Row{..} col =
7474 Conversion $ \conn -> do
7575 oid <- PQ.ftype rowresult col
7676 Ok <$> getTypeInfo conn oid