groundhog-sqlite 0.7.0 → 0.7.0.1
raw patch · 3 files changed
+16/−12 lines, 3 filesdep ~monad-control
Dependency ranges changed: monad-control
Files
- Database/Groundhog/Sqlite.hs +11/−10
- changelog +3/−0
- groundhog-sqlite.cabal +2/−2
Database/Groundhog/Sqlite.hs view
@@ -299,16 +299,17 @@ DbOther (OtherTypeDef ts) -> concatMap (either id showSqlType) ts readSqlType :: String -> DbTypePrimitive-readSqlType "VARCHAR" = DbString-readSqlType "INTEGER" = DbInt64-readSqlType "REAL" = DbReal-readSqlType "BOOLEAN" = DbBool-readSqlType "DATE" = DbDay-readSqlType "TIME" = DbTime-readSqlType "TIMESTAMP" = DbDayTime-readSqlType "TIMESTAMP WITH TIME ZONE" = DbDayTimeZoned-readSqlType "BLOB" = DbBlob-readSqlType typ = DbOther $ OtherTypeDef [Left typ]+readSqlType typ = case map toUpper typ of+ "VARCHAR" -> DbString+ "INTEGER" -> DbInt64+ "REAL" -> DbReal+ "BOOLEAN" -> DbBool+ "DATE" -> DbDay+ "TIME" -> DbTime+ "TIMESTAMP" -> DbDayTime+ "TIMESTAMP WITH TIME ZONE" -> DbDayTimeZoned+ "BLOB" -> DbBlob+ _ -> DbOther $ OtherTypeDef [Left typ] data Affinity = TEXT | NUMERIC | INTEGER | REAL | NONE deriving (Eq, Show)
changelog view
@@ -1,3 +1,6 @@+0.7.0.1+* Support for monad-control 1.0+ 0.7.0 * Bump with groundhog
groundhog-sqlite.cabal view
@@ -1,5 +1,5 @@ name: groundhog-sqlite-version: 0.7.0+version: 0.7.0.1 license: BSD3 license-file: LICENSE author: Boris Lykah <lykahb@gmail.com>@@ -19,7 +19,7 @@ , bytestring >= 0.9 , transformers >= 0.2.1 , groundhog >= 0.7 && < 0.8- , monad-control >= 0.3 && < 0.4+ , monad-control >= 0.3 && < 1.1 , monad-logger >= 0.3 && < 0.4 , containers >= 0.2 , text >= 0.8