mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-28 22:44:11 +03:00
examples/HDBC/PostgreSQL: revert modified constraint set.
(grafted from da33a551a5a187bdbc043764a59b68f563766635)
This commit is contained in:
parent
77bcb26757
commit
ebe6071628
@ -87,8 +87,7 @@ newOrange = StockGoods 2 "Orange" 150 10
|
||||
keyUpdateUidName :: KeyUpdate (Int32, String) StockGoods
|
||||
keyUpdateUidName = derivedKeyUpdate $ seq' >< name'
|
||||
|
||||
runKeyUpdateAndPrint :: (PersistableWidth a, ToSql SqlValue a)
|
||||
=> KeyUpdate p a -> a -> IO ()
|
||||
runKeyUpdateAndPrint :: ToSql SqlValue a => KeyUpdate p a -> a -> IO ()
|
||||
runKeyUpdateAndPrint ku r = handleConnectionIO connect $ \conn -> do
|
||||
putStrLn $ "SQL: " ++ show ku
|
||||
rv <- runKeyUpdate conn ku r
|
||||
|
Loading…
Reference in New Issue
Block a user