Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-persistent-sqlite for
openSUSE:Factory checked in at 2023-10-11 23:55:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-persistent-sqlite (Old)
and /work/SRC/openSUSE:Factory/.ghc-persistent-sqlite.new.1807 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-persistent-sqlite"
Wed Oct 11 23:55:54 2023 rev:12 rq:1116847 version:2.13.2.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-persistent-sqlite/ghc-persistent-sqlite.changes
2023-04-04 21:22:33.185921610 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-persistent-sqlite.new.1807/ghc-persistent-sqlite.changes
2023-10-12 11:41:14.763180891 +0200
@@ -1,0 +2,10 @@
+Tue Oct 3 23:00:41 UTC 2023 - Peter Simons <[email protected]>
+
+- Update persistent-sqlite to version 2.13.2.0.
+ ## 2.13.2
+
+ * [#1488](https://github.com/yesodweb/persistent/pull/1488)
+ * Add `openRawSqliteConn` for creating `RawSqlite SqlBackend` connections
+ that aren't automatically cleaned-up.
+
+-------------------------------------------------------------------
Old:
----
persistent-sqlite-2.13.1.1.tar.gz
New:
----
persistent-sqlite-2.13.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-persistent-sqlite.spec ++++++
--- /var/tmp/diff_new_pack.snO9ma/_old 2023-10-12 11:41:15.451205479 +0200
+++ /var/tmp/diff_new_pack.snO9ma/_new 2023-10-12 11:41:15.451205479 +0200
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 2.13.1.1
+Version: 2.13.2.0
Release: 0
Summary: Backend for the persistent library using sqlite3
License: MIT
++++++ persistent-sqlite-2.13.1.1.tar.gz -> persistent-sqlite-2.13.2.0.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/persistent-sqlite-2.13.1.1/ChangeLog.md
new/persistent-sqlite-2.13.2.0/ChangeLog.md
--- old/persistent-sqlite-2.13.1.1/ChangeLog.md 2023-01-22 18:06:11.000000000
+0100
+++ new/persistent-sqlite-2.13.2.0/ChangeLog.md 2023-10-04 01:00:28.000000000
+0200
@@ -1,5 +1,11 @@
# Changelog for persistent-sqlite
+## 2.13.2
+
+* [#1488](https://github.com/yesodweb/persistent/pull/1488)
+ * Add `openRawSqliteConn` for creating `RawSqlite SqlBackend` connections
+ that aren't automatically cleaned-up.
+
## 2.13.1.1
* [#1459](https://github.com/yesodweb/persistent/pull/1459)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/persistent-sqlite-2.13.1.1/Database/Persist/Sqlite.hs
new/persistent-sqlite-2.13.2.0/Database/Persist/Sqlite.hs
--- old/persistent-sqlite-2.13.1.1/Database/Persist/Sqlite.hs 2023-01-22
18:06:11.000000000 +0100
+++ new/persistent-sqlite-2.13.2.0/Database/Persist/Sqlite.hs 2023-10-04
01:00:28.000000000 +0200
@@ -48,6 +48,7 @@
, ForeignKeyViolation(..)
, checkForeignKeys
, RawSqlite
+ , openRawSqliteConn
, persistentBackend
, rawSqliteConnection
, withRawSqliteConnInfo
@@ -94,8 +95,8 @@
import qualified Data.Conduit.List as CL
import Data.Foldable (toList)
import qualified Data.HashMap.Lazy as HashMap
-import Data.Int (Int64)
import Data.IORef (newIORef)
+import Data.Int (Int64)
import Data.Maybe
import Data.Pool (Pool)
import Data.Text (Text)
@@ -938,6 +939,22 @@
, _rawSqliteConnection :: Sqlite.Connection -- ^ The underlying
`Sqlite.Connection`
}
+-- | Open a @'RawSqlite' 'SqlBackend'@ connection from a
'SqliteConnectionInfo'.
+--
+-- When using this function, the caller has to accept the responsibility of
+-- cleaning up the resulting connection. To do this, use 'close' with the
+-- 'rawSqliteConnection' - it's enough to simply drop the 'persistBackend'
+-- afterwards.
+--
+-- @since 2.13.2
+openRawSqliteConn
+ :: (MonadUnliftIO m, MonadLoggerIO m)
+ => SqliteConnectionInfo
+ -> m (RawSqlite SqlBackend)
+openRawSqliteConn connInfo = do
+ logFunc <- askLoggerIO
+ liftIO $ openWith RawSqlite connInfo logFunc
+
instance BackendCompatible b (RawSqlite b) where
projectBackend = _persistentBackend
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/persistent-sqlite-2.13.1.1/cbits/sqlite3.c
new/persistent-sqlite-2.13.2.0/cbits/sqlite3.c
--- old/persistent-sqlite-2.13.1.1/cbits/sqlite3.c 2022-10-17
21:15:14.000000000 +0200
+++ new/persistent-sqlite-2.13.2.0/cbits/sqlite3.c 2023-10-04
00:38:44.000000000 +0200
@@ -53429,7 +53429,7 @@
}
pPager->journalOff += (nSuper+20);
- /* If the pager is in peristent-journal mode, then the physical
+ /* If the pager is in persistent-journal mode, then the physical
** journal-file may extend past the end of the super-journal name
** and 8 bytes of magic data just written to the file. This is
** dangerous because the code to rollback a hot-journal file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/persistent-sqlite-2.13.1.1/persistent-sqlite.cabal
new/persistent-sqlite-2.13.2.0/persistent-sqlite.cabal
--- old/persistent-sqlite-2.13.1.1/persistent-sqlite.cabal 2023-01-22
18:06:11.000000000 +0100
+++ new/persistent-sqlite-2.13.2.0/persistent-sqlite.cabal 2023-10-04
01:00:28.000000000 +0200
@@ -1,5 +1,5 @@
name: persistent-sqlite
-version: 2.13.1.1
+version: 2.13.2.0
license: MIT
license-file: LICENSE
author: Michael Snoyman <[email protected]>