Skip to content

Commit

Permalink
pagilatest: use streamingRunSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbecich committed Dec 10, 2024
1 parent ab3e6c7 commit c5212eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions beam-postgres/examples/test/pagilatest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DeriveGeneric #-}
module Main where
Expand All @@ -30,10 +31,10 @@ import Data.Time.LocalTime (LocalTime)

import Data.Conduit ((=$=), runConduit)
import qualified Data.Conduit.List as CL (mapM_)
import Database.Beam.Postgres.Conduit (streamingRunSelect)

-- TODO
-- runSelect deprecated?
-- testQuery conn q = runConduit (runSelect conn (select q) =$= CL.mapM_ (putStrLn . show))
-- testQuery conn q = runConduit (streamingRunSelect conn (select q) =$= CL.mapM_ (putStrLn . show))

main :: IO ()
main = pure ()
Expand Down

0 comments on commit c5212eb

Please sign in to comment.