Created
October 29, 2009 21:09
-
-
Save mascarenhas/221829 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local env = luasql.sqlite3() | |
local db = todo.real_path .. "/todo.db" | |
local timeout = 3600 -- one hour | |
todo.mapper.conn = recycle(function () | |
return env:connect(db) | |
end, timeout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment