packages feed

haskelldb 2.1.0 → 2.1.1

raw patch · 3 files changed

+10/−4 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Database.HaskellDB.Database: commit :: Database -> IO ()
+ Database.HaskellDB.Database: dbCommit :: Database -> IO ()
+ Database.HaskellDB.Database: getValue :: GetValue a => GetInstances s -> s -> String -> IO a
+ Database.HaskellDB.Query: primExpr :: ExprC e => e a -> PrimExpr
+ Database.HaskellDB.Query: showConstant :: ShowConstant a => a -> Literal
- Database.HaskellDB.Database: Database :: (forall er vr. GetRec er vr => PrimQuery -> Rel er -> IO [Record vr]) -> (TableName -> Assoc -> IO ()) -> (TableName -> PrimQuery -> IO ()) -> (TableName -> [PrimExpr] -> IO ()) -> (TableName -> [PrimExpr] -> Assoc -> IO ()) -> IO [TableName] -> (TableName -> IO [(Attribute, FieldDesc)]) -> (forall a. IO a -> IO a) -> (String -> IO ()) -> (TableName -> [(Attribute, FieldDesc)] -> IO ()) -> (String -> IO ()) -> (TableName -> IO ()) -> Database
+ Database.HaskellDB.Database: Database :: (forall er vr. GetRec er vr => PrimQuery -> Rel er -> IO [Record vr]) -> (TableName -> Assoc -> IO ()) -> (TableName -> PrimQuery -> IO ()) -> (TableName -> [PrimExpr] -> IO ()) -> (TableName -> [PrimExpr] -> Assoc -> IO ()) -> IO [TableName] -> (TableName -> IO [(Attribute, FieldDesc)]) -> (forall a. IO a -> IO a) -> (String -> IO ()) -> (TableName -> [(Attribute, FieldDesc)] -> IO ()) -> (String -> IO ()) -> (TableName -> IO ()) -> IO () -> Database

Files

haskelldb.cabal view
@@ -1,5 +1,5 @@ Name: haskelldb-Version: 2.1.0+Version: 2.1.1 Cabal-version: >= 1.6 Build-type: Simple Homepage: http://trac.haskell.org/haskelldb
src/Database/HaskellDB/Database.hs view
@@ -25,11 +25,11 @@ 		-- * Type declarations 		, Database(..) 		, GetRec(..), GetInstances(..)-                , GetValue+                , GetValue(..) 		-- * Function declarations 		, query 		, insert, delete, update, insertQuery-		, tables, describe, transaction+		, tables, describe, transaction, commit 		, createDB, createTable, dropDB, dropTable 		) where @@ -76,6 +76,7 @@ 	  , dbCreateTable :: TableName -> [(Attribute,FieldDesc)] -> IO () 	  , dbDropDB :: String -> IO () 	  , dbDropTable :: TableName -> IO ()+          , dbCommit :: IO ()   	  }  @@ -238,6 +239,11 @@ 	    -> IO a -- ^ Action to run 	    -> IO a  transaction = dbTransaction++-- | Commit any pending data to the database.+commit :: Database -- ^ Database+       -> IO ()+commit = dbCommit  ----------------------------------------------------------- -- Functions that edit the database layout
src/Database/HaskellDB/Query.hs view
@@ -22,7 +22,7 @@ 	      -- * Data and class declarations 	     Rel(..), Attr(..), Table(..), Query, Expr(..), OrderExpr 	     , ToPrimExprs, ConstantRecord-	     , ShowConstant, ExprC, ProjectExpr, ProjectRec, InsertRec+	     , ShowConstant(..), ExprC(..), ProjectExpr, ProjectRec, InsertRec 	     , ExprAggr(..), ExprDefault(..) 	     , copy, copyAll, RelToRec 	      -- * Operators