Luasql and SQLite? Luasql and SQLite? sqlite sqlite

Luasql and SQLite?


  1. Don't rename the DLL file: This will cause Lua not to find the initialization function in the DLL (which is named the same as the DLL).

  2. You don't need the module call, just require. module is used when you are creating a module, not when you use it.


Edit: According to the LuaSQL documentation, it looks like you need to call luasql.sqlite3() instead of luasql.sqlite().


In your edited snippet you are loading the luasql.sqlite3 module and trying to access the luasql.sqlite driver. Note that sqlite3 is not the same as sqlite...