persistent-sqlite 0.5.0 → 0.6.0
raw patch · 3 files changed
+10/−10 lines, 3 filesdep ~persistent
Dependency ranges changed: persistent
Files
- Database/Persist/Sqlite.hs +5/−5
- Database/Sqlite.hs +1/−1
- persistent-sqlite.cabal +4/−4
Database/Persist/Sqlite.hs view
@@ -9,7 +9,7 @@ import Database.Persist import Database.Persist.Base-import Database.Persist.GenericSql+import Database.Persist.GenericSql hiding (Key(..)) import Database.Persist.GenericSql.Internal import qualified Database.Sqlite as Sqlite@@ -42,8 +42,8 @@ , close = Sqlite.close conn , migrateSql = migrate' , begin = helper "BEGIN"- , commit = helper "COMMIT"- , rollback = helper "ROLLBACK"+ , commitC = helper "COMMIT"+ , rollbackC = helper "ROLLBACK" , escapeName = escape , noLimit = "LIMIT -1" }@@ -190,7 +190,7 @@ , escape tableTmp ] -mkCreateTable :: Bool -> RawName -> ([Column], [UniqueDef]) -> Sql+mkCreateTable :: Bool -> RawName -> ([Column], [UniqueDef']) -> Sql mkCreateTable isTemp table (cols, uniqs) = pack $ concat [ "CREATE" , if isTemp then " TEMP" else ""@@ -217,7 +217,7 @@ Just (table, _) -> " REFERENCES " ++ escape table ] -sqlUnique :: UniqueDef -> String+sqlUnique :: UniqueDef' -> String sqlUnique (cname, cols) = concat [ ",CONSTRAINT " , escape cname
Database/Sqlite.hs view
@@ -343,7 +343,7 @@ PersistUTCTime d -> bindText statement parameterIndex $ pack $ show d PersistList _ -> P.error "Refusing to serialize a PersistList to a SQLite value" PersistMap _ -> P.error "Refusing to serialize a PersistMap to a SQLite value"- PersistForeignKey _ -> P.error "Refusing to serialize a PersistForeignKey to a SQLite value"+ PersistObjectId _ -> P.error "Refusing to serialize a PersistObjectId to a SQLite value" ) $ zip [1..] sqlData return ()
persistent-sqlite.cabal view
@@ -1,5 +1,5 @@ name: persistent-sqlite-version: 0.5.0+version: 0.6.0 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -10,7 +10,7 @@ stability: Stable cabal-version: >= 1.6 build-type: Simple-homepage: http://docs.yesodweb.com/persistent/+homepage: http://www.yesodweb.com/book/persistent flag systemlib description: Use the system-wide sqlite library@@ -20,7 +20,7 @@ build-depends: base >= 4 && < 5 , bytestring >= 0.9.1 && < 0.10 , transformers >= 0.2.1 && < 0.3- , persistent >= 0.5 && < 0.6+ , persistent >= 0.6 && < 0.7 , monad-control >= 0.2 && < 0.3 , containers >= 0.2 && < 0.5 , text >= 0.7 && < 0.12@@ -34,4 +34,4 @@ source-repository head type: git- location: git://github.com/snoyberg/persistent.git+ location: git://github.com/yesodweb/persistent.git