1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
|
# Changelog for persistent-sqlite
## 2.13.3.1
* [1585](https://github.com/yesodweb/persistent/pull/1585)
* Fix missing timezone "Z" in Sqlite UTCTime strings, e.g.
"2025-04-12T06:53:42Z"
## 2.13.3.0
* [#1524](https://github.com/yesodweb/persistent/pull/1524)
* Add Database.Persist.Sqlite.createSqlitePoolWithConfig to create a SQLite
connection pool with a connection string and ConnectionPoolConfig.
Using ConnectionPoolConfig, it is possible to set the connection idle timeout.
* [#1486](https://github.com/yesodweb/persistent/pull/1486)
* Add Database.Sqlite.open' which takes a ByteString
* [#1522](https://github.com/yesodweb/persistent/pull/1522)
* Update the sqlite amalgamation to 3.43.1
## 2.13.2.0
* [#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)
* Make use of `CautiousMigration` type alias for clarity.
## 2.13.1.0
* [#1341](https://github.com/yesodweb/persistent/pull/1341)
* Add `SqlBackendHooks` to allow for instrumentation of queries.
* [#1327](https://github.com/yesodweb/persistent/pull/1327)
* Update backend to support new `StatementCache` interface
## 2.13.0.4
* `aeson-2.0` support [#1351](https://github.com/yesodweb/persistent/pull/1351/)
## 2.13.0.3
* Somehow failed to properly release the safe-to-remove changes.
## 2.13.0.2
* [#1275](https://github.com/yesodweb/persistent/pull/1275)
* Fix SafeToRemove
## 2.13.0.1
* [#1265](https://github.com/yesodweb/persistent/pull/1265)
* Support GHC 9
## 2.13.0.0
* [#1225](https://github.com/yesodweb/persistent/pull/1225)
* Support `persistent-2.13` changes for SqlBackend being made internal.
## 2.12.0.0
* Decomposed `HaskellName` into `ConstraintNameHS`, `EntityNameHS`, `FieldNameHS`. Decomposed `DBName` into `ConstraintNameDB`, `EntityNameDB`, `FieldNameDB` respectively. [#1174](https://github.com/yesodweb/persistent/pull/1174)
## 2.11.1.0
* Add `checkForeignKeys` operation to verify no foreign key constraints are
violated by the database contents.
* Fix the migration for primary keys that was broken in 2.11.0.0
[#1184](https://github.com/yesodweb/persistent/issues/1184)
## 2.11.0.0
* Foreign Key improvements [#1121] (https://github.com/yesodweb/persistent/pull/1121)
* It is now supported to refer to a table with an auto generated Primary Kay
* It is now supported to refer to non-primary fields, using the keyword `References`
* It is now supported to have cascade options for simple/single-field Foreign Keys
* [#1060](https://github.com/yesodweb/persistent/pull/1060)
* The QuasiQuoter now supports `OnDelete` and `OnUpdate` cascade options.
* [#1131](https://github.com/yesodweb/persistent/pull/1131)
* Provide `exists` function as required by `PersistQueryRead` type class.
* Remove unnecessary deriving of Typeable [#1114](https://github.com/yesodweb/persistent/pull/1114)
* [#1134](https://github.com/yesodweb/persistent/pull/1134)
* Update the SQLite amalgamation to 3.33.0
## 2.10.6.2
* Move template haskell splices to be correct (and GHC 8.10 compatible) [#1034](https://github.com/yesodweb/persistent/pull/1034)
## 2.10.6.1
* Missing `includes` and `install-includes` cabal fields added, to allow
packages depending on persistent-sqlite access to the header files.
## 2.10.6
* Bump SQLite amalgamation to version 3.30.1 [#991](https://github.com/yesodweb/persistent/pull/991)
* Add `createRawSqlitePoolFromInfo`, `createRawSqlitePoolFromInfo_`,
`withRawSqlitePoolInfo`, and `withRawSqlitePoolInfo_` to match the existing
pool functions for regular `SqlBackend`. [#983](https://github.com/yesodweb/persistent/pull/983)
## 2.10.5.2
* Compatibility with latest persistent-template for test suite [#1002](https://github.com/yesodweb/persistent/pull/1002/files)
## 2.10.5.1
* a fix for template-haskell 2.16, GHC 8.10 alpha [#993](https://github.com/yesodweb/persistent/pull/993) @simonmichael
## 2.10.5
* Foreign keys table constraints are correctly generated [#945](https://github.com/yesodweb/persistent/pull/945) @kderme
## 2.10.4
* Fix bug with 2.10.3 and 2.10.2 that caused the `RawSqlite` loop. [#934](https://github.com/yesodweb/persistent/pull/934) @merijn
## 2.10.3
* Unique constraints are correctly generated. [#922](https://github.com/yesodweb/persistent/pull/922) @kderme
## 2.10.2
* Add a new `RawSqlite` type and `withRawSqliteConnInfo` function that allow access to the underlying Sqlite `Connection` type. [#772](https://github.com/yesodweb/persistent/pull/772)
* Expose the internals of `Connection` in an Internal module, allowing the user to call SQLite functions via the C FFI. [#772](https://github.com/yesodweb/persistent/pull/772)
* Add a flag for SQLITE_STAT4 and enable it by default, allowing for better query optimisation when using ANALYZE. This breaks the query planner stability guarantee, but the required flag for that isn't enabled or exposed by persistent. Only affects the vendored SQLite library, has no effect when using system SQLite.
* Add support for migrating entities with composite primary keys. Fixes [#669](https://github.com/yesodweb/persistent/issues/669)
* Fix a bug when using the `Filter` datatype directly. See [#915](https://github.com/yesodweb/persistent/pull/915) for more details.
## 2.10.1
* Add support for reading text values with null characters from the database. Fixes [#921](https://github.com/yesodweb/persistent/issues/921)
## 2.10.0
* Updated for `persistent-2.10.0` compatibility.
## 2.9.3
* Add retry-on-busy support, automatically retrying when sqlite returns a busy
error on enabling WAL mode, and providing helper `retryOnBusy` and
`waitForDatabase` identifiers.
## 2.9.2
* Add enableExtendedResultCodes and disableExtendedResultCodes functions
## 2.9.1
* Bump vendored SQLite library to [3.26.0](https://www.sqlite.org/releaselog/3_26_0.html) to address [RCE bug: `magellan`](https://blade.tencent.com/magellan/index_en.html).
## 2.9.0
* Added support for SQL isolation levels to via SqlBackend. [#812] SQLite technically only supports Serializable.
* Update the vendored SQLite C library from 3.22.0 to 3.25.2. See [the SQLite changelog](https://sqlite.org/changes.html) for details.
* Fix [832](https://github.com/yesodweb/persistent/issues/832): `repsertMany` now matches `mapM_ (uncurry repsert)` and is atomic.
## 2.8.2
* Add the `extraPragmas` setting
## 2.8.1.2
* Add flag to enable full-text search extensions (enabled by default)
* Add flag to enable URI filename support (enabled by default)
* Add flag to enable using usleep (enabled by default)
- Enabling usleep allows sqlite to use a finer granularity when sleeping (reduces time between locks)
* Add flag to enable json1 extension (enabled by default)
## 2.8.1.1
* Update the vendored SQLite C library from 3.19.3 to 3.22.0. See [the SQLite changelog](https://sqlite.org/changes.html) for details.
## 2.8.1
* Updated `SqlBackend` definition to set `connPutManySql`. [#770](https://github.com/yesodweb/persistent/pull/770)
## 2.8.0
* Switch from `MonadBaseControl` to `MonadUnliftIO`
## 2.6.4
* Adds a new function `stepConn`, which uses an additional parameter to give more detailed error messages [#750](https://github.com/yesodweb/persistent/pull/750)
* Restores the previous function signature of `step`, which was accidentally changed in 2.6.3.2
## 2.6.3.2
* This release accidentally broke API, and is deprecated on Hackage.
* Provide more detailed error messages when using the `step` function [#730](https://github.com/yesodweb/persistent/pull/730)
## 2.6.3.1
* Fix migration to avoid creating foreign-key constraints in temporary tables [#736](https://github.com/yesodweb/persistent/pull/736)
## 2.6.3
* Add 'use-pkgconfig' flag to use pkg-config to find system SQLite library.
## 2.6.2.1
* Update the vendored SQLite C library from 3.12.1 to 3.19.3. See [the SQLite changelog](https://sqlite.org/changes.html) for details.
## 2.6.2
* Turned on foreign key constraints [#646](https://github.com/yesodweb/persistent/issues/646)
* Added new `SqliteConnectionInfo`-based API
## 2.6.1
* Added functions to monitor (status) and control (softHeapLimit) process-wide SQLite memory usage.
## 2.6.0.1
* Ensure connection is closed if wrapConnectionWal fails
## 2.6
Compatibility for backend-specific upsert functionality.
A lucky contributor could try to add upsert to the sqlite backend now.
It would definitely be tricky though because sqlite does not really have this
feature.
http://stackoverflow.com/questions/418898/sqlite-upsert-not-insert-or-replace/4330694#4330694
## 2.5.0.2
* Fix lstat workaround for https://ghc.haskell.org/trac/ghc/ticket/7072 on Mac OS X [#564](https://github.com/yesodweb/persistent/pull/564)
## 2.5.0.1
* Reapply workaround for https://ghc.haskell.org/trac/ghc/ticket/7072 [#561](https://github.com/yesodweb/persistent/pull/561)
## 2.5
* changes for read/write typeclass split
## 2.2.2
* Upgrade to SQLite 3.12.1 [#551](https://github.com/yesodweb/persistent/issues/551)
## 2.2.1
* Upgrade to SQLite 3.8.11.1 [#444](https://github.com/yesodweb/persistent/pull/444)
## 2.2
Update to persistent 2.2
## 2.1.4.1
* Add missing source files [#382](https://github.com/yesodweb/persistent/issues/382)
## 2.1.4
* Add log support to persistent-sqlite [#381](https://github.com/yesodweb/persistent/pull/381)
## 2.1.3
* Added a `Show` instance for `SqliteConf`.
* Use `SqliteException` instead of calling `fail` [#364](https://github.com/yesodweb/persistent/issues/364)
## 2.1.2
* Turn on write-ahead log [#363](https://github.com/yesodweb/persistent/issues/363)
* Prepending `WAL=off ` to your connection string will recover the previous behavior.
## 2.1.1.1
Fix rendering of `UTCTime` to match SQLite requirements (see [issue
#328](https://github.com/yesodweb/persistent/issues/328#issuecomment-65887577)).
## 2.1.1
Provide a `FromJSON` instance for `SqliteConf`.
|