Hi guys,
The documentation talks about how to open connections, execute SQL queries, however no further discussion is provided in terms of the processing that happens in the background. When you open the connection to a database db.open, what actually happens/what does that mean? I don't understand how long this connection to the database should last. Does it close at the end of the function i.e. once all the function local variables get pulled off the stack or does it remain active and you're able to just db.exec at will in other functions?
Also, any thoughts on globally declaring a database object?
Bookmarks