packages feed

persistent-sqlite 2.0.5 → 2.1

raw patch · 2 files changed

+6/−6 lines, 2 filesdep ~persistent

Dependency ranges changed: persistent

Files

Database/Persist/Sqlite.hs view
@@ -47,19 +47,19 @@ withSqlitePool s = withSqlPool $ open' s  withSqliteConn :: (MonadBaseControl IO m, MonadIO m, MonadLogger m)-               => Text -> (Connection -> m a) -> m a+               => Text -> (SqlBackend -> m a) -> m a withSqliteConn = withSqlConn . open' -open' :: Text -> LogFunc -> IO Connection+open' :: Text -> LogFunc -> IO SqlBackend open' connStr logFunc = Sqlite.open connStr >>= flip wrapConnection logFunc  -- | Wrap up a raw 'Sqlite.Connection' as a Persistent SQL 'Connection'. -- -- Since 1.1.5-wrapConnection :: Sqlite.Connection -> LogFunc -> IO Connection+wrapConnection :: Sqlite.Connection -> LogFunc -> IO SqlBackend wrapConnection conn logFunc = do     smap <- newIORef $ Map.empty-    return Connection+    return SqlBackend         { connPrepare = prepare' conn         , connStmtMap = smap         , connInsertSql = insertSql'
persistent-sqlite.cabal view
@@ -1,5 +1,5 @@ name:            persistent-sqlite-version:         2.0.5+version:         2.1 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -24,7 +24,7 @@     build-depends:   base                    >= 4         && < 5                    , bytestring              >= 0.9.1                    , transformers            >= 0.2.1-                   , persistent              >= 2.0.5     && < 2.1+                   , persistent              >= 2.1       && < 3                    , monad-control           >= 0.2                    , containers              >= 0.2                    , text                    >= 0.7