packages feed

groundhog-sqlite 0.4.2 → 0.4.2.2

raw patch · 3 files changed

+54/−5 lines, 3 filesdep ~groundhog

Dependency ranges changed: groundhog

Files

Database/Groundhog/Sqlite.hs view
@@ -87,6 +87,7 @@   getList k = getList' k  instance (MonadBaseControl IO m, MonadIO m, MonadLogger m) => SchemaAnalyzer (DbPersist Sqlite m) where+  schemaExists = error "schemaExists: is not supported by Sqlite"   listTables _ = queryRaw' "SELECT name FROM sqlite_master WHERE type='table'" [] (mapAllRows $ return . fst . fromPurePersistValues proxy)   listTableTriggers _ name = queryRaw' "SELECT name FROM sqlite_master WHERE type='trigger' AND tbl_name=?" [toPrimitivePersistValue proxy name] (mapAllRows $ return . fst . fromPurePersistValues proxy)   analyzeTable = analyzeTable'@@ -151,7 +152,7 @@   S.close conn  migrate' :: (PersistEntity v, MonadBaseControl IO m, MonadIO m, MonadLogger m) => v -> Migration (DbPersist Sqlite m)-migrate' = migrateRecursively (migrateEntity migrationPack) (migrateList migrationPack)+migrate' = migrateRecursively (const $ return $ Right []) (migrateEntity migrationPack) (migrateList migrationPack)  migrationPack :: (MonadBaseControl IO m, MonadIO m, MonadLogger m) => GM.MigrationPack (DbPersist Sqlite m) migrationPack = GM.MigrationPack@@ -530,8 +531,8 @@ defaultPriority = 0 triggerPriority = 1 -proxy :: Proxy Sqlite-proxy = error "Proxy Sqlite"+proxy :: proxy Sqlite+proxy = error "proxy Sqlite"  delim' :: Utf8 delim' = fromChar delim
+ changelog view
@@ -0,0 +1,45 @@+0.4.2.2+* Create missing schemas (or databases in MySQL terminology) during migration+* Replace datatype Proxy with type variable++0.4.2+* Sqlite-specific mathematical functions (signum, quotRem)++0.4.1+* Added functions replaceBy and deleteAll++0.4.0.2+* Added createSqlitePool++0.4.0.1+* Exposed connection constructor++0.4.0+* Query logging+* Default column values+* Switched to direct-sqlite backend++0.3.0+* Switched from pool-conduit to resource-pool+* Schema qualified tables+* Support for savepoints++0.2.0+* Database indexes+* Support DB-specific column types++0.1.0.2+* Removed overly restrictive upper bound for bytestring package+* Support zoned time+* Merged changes from direct-sqlite++0.1.0.1+* Removed overly restrictive upper bound for containers package++0.1.0+The library supports new features of groundhog-0.1.0: composite keys, projections, etc.+* Updated sqlite3 C sources to 3.7.13+* Migration analyzes schema instead of comparing CREATE statements as strings++0.0.1+The first release.
groundhog-sqlite.cabal view
@@ -1,5 +1,5 @@ name:            groundhog-sqlite-version:         0.4.2+version:         0.4.2.2 license:         BSD3 license-file:    LICENSE author:          Boris Lykah <lykahb@gmail.com>@@ -11,11 +11,14 @@ cabal-version:   >= 1.6 build-type:      Simple +extra-source-files:+    changelog+ library     build-depends:   base                    >= 4         && < 5                    , bytestring              >= 0.9                    , transformers            >= 0.2.1-                   , groundhog               >= 0.4.2     && < 0.5.0+                   , groundhog               >= 0.4.2.2   && < 0.5.0                    , monad-control           >= 0.3                    , monad-logger            >= 0.3                    , containers              >= 0.2