Popularity
5.0
Declining
Activity
0.0
Stable
4
4
3

Monthly Downloads: 6
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Database     Pipes    

pipes-sqlite-simple alternatives and similar packages

Based on the "pipes" category.
Alternatively, view pipes-sqlite-simple alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of pipes-sqlite-simple or a related project?

Add another 'pipes' Package

README

pipes-sqlite-simple

Functions that smash Pipes, Pipes.Safe and sqlite-simple together

Usage

> import Pipes.SQLite

> import qualified Pipes as P
> import qualified Pipes.Prelude as P
> import Pipes.Safe
> import qualified Database.SQLite.Simple as SQL

:set -XOverloadedStrings
conn <- SQL.open "test.sqlite"
SQL.execute_ conn "create table woozles (name)"
-- Create woozles
P.each [(1 :: Int)..10] >-> P.map SQL.Only >-> execute conn "insert into woozles (name) values (?)"
-- Query the woozles.
runSafeT . runEffect $
    query_ conn "select name from woozles" >-> (P.print :: Consumer (SQL.Only Int) (SafeT IO) ())