Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- rawSelectStream :: MonadResource m => ([PersistValue] -> Either Text result) -> Text -> [PersistValue] -> ConduitT () result (ReaderT (RawPostgresql SqlBackend) m) ()
Documentation
rawSelectStream :: MonadResource m => ([PersistValue] -> Either Text result) -> Text -> [PersistValue] -> ConduitT () result (ReaderT (RawPostgresql SqlBackend) m) () Source #
Run a Text
query, with interpolated PersistValue
s, against a PostgreSQL
backend using cursors, parsing the results with a custom parser function and
streaming them back.
If the parser function returns Left
for any row, a PersistException
will
be thrown.