haskell - How to execute INSERT prepared statement using sqlite-simple? -


sqlite-simple able create prepared statements, cannot figure out how use them instructions not return results. is:

main =   db <- open "test.db"   let = 1   let b = 2   withstatement db "insert test values (?, ?)" $ \stmt ->     bind stmt (a, b)     ???     reset stmt 

the 1 api "fits" in ??? nextrow requires data returned. so, how prepared statements return no results supposed used?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -