The "Home Page" of the persistent package has an example showing how to connect to an in-memory instance of sqlite:
http://www.yesodweb.com/book/persistent
Seems that all you would have to change is the withSqliteConn
call.
Pergunta
Please forgive how simple this question is.
Google searches, the documentation, and the Yesod book seem to only explain how to do things with databases, but I have yet to see a straight forward explanation on how to actually connect to one.
Any help or guidance in the right direction would be appreciated.
Edit: I simplified the code sample from the Yesod book to make it a little easier to read and use.
Solução
The "Home Page" of the persistent package has an example showing how to connect to an in-memory instance of sqlite:
http://www.yesodweb.com/book/persistent
Seems that all you would have to change is the withSqliteConn
call.