June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,20 @@
|
|||
module Main (main) where
|
||||
|
||||
import Database.HDBC (IConnection, commit, run, toSql)
|
||||
|
||||
updatePlayers :: IConnection a => a -> String -> Int -> Bool -> Int -> IO Bool
|
||||
updatePlayers conn name score active jerseyNum = do
|
||||
rowCount <- run conn
|
||||
"UPDATE players\
|
||||
\ SET name = ?, score = ?, active = ?\
|
||||
\ WHERE jerseyNum = ?"
|
||||
[ toSql name
|
||||
, toSql score
|
||||
, toSql active
|
||||
, toSql jerseyNum
|
||||
]
|
||||
commit conn
|
||||
return $ rowCount == 1
|
||||
|
||||
main :: IO ()
|
||||
main = undefined
|
||||
Loading…
Add table
Add a link
Reference in a new issue