Hello
After installing the lsqlite3 library through LuaRocks, the following
script works fine:
-- called through "lua cli.lua"
local sqlite3 = require("lsqlite3")
print(sqlite3.version())
db = sqlite3.open('test.db')
assert(db:close() == sqlite3.OK)
However, the following script run through Mongoose doesn't display the
version number and doesn't create the database:
mg.write('HTTP/1.0 200 OK\r\n', 'Content-Type: text/plain\r\n', '\r\n')
mg.write(os.date("%A"))
sqlite3 = require('lsqlite3')
mg.write(sqlite3.version())
local db = sqlite3.open('requests.db')
db:close()
As Mongoose simply displays today's day with no further error message, is
there a way to investigate why it's not working as intended?
Thank you.
--
You received this message because you are subscribed to the Google Groups
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.