pantry-0.9.0: Content addressable Haskell package management
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pantry.SQLite

Synopsis

Documentation

data Storage Source #

Represents a SQL database connection. This used to be a newtype wrapper around a connection pool. However, when investigating https://github.com/commercialhaskell/stack/issues/4471, it appeared that holding a pool resulted in overly long write locks being held on the database. As a result, we now abstract away whether a pool is used, and the default implementation in Pantry.Storage does not use a pool.

Constructors

Storage 

Fields

initStorage Source #

Arguments

:: HasLogFunc env 
=> Text 
-> Migration 
-> Path Abs File

storage file

-> (Storage -> RIO env a) 
-> RIO env a