I looked at least 6 different SQL Lua extensions, and they all seem to have their latest version compatible with Lua version 5.1. I have had zero success in implementing any of these in my current project that uses Lua 5.2, with a better script ending either with disabling the program or with attempt to call global 'module' (a nil value) .
I am not the original owner of the project, so I try not to force me to change the source code (although quite recently I even went down this road now).
And often, itβs not clear whether these failures are related to how the project itself works, how the Lua project is implemented (as a static library), how Lua tries to implement its extensions, how extensions implement their dependencies, version conflict, or some crazy combination of each . It's almost impossible to debug a silent crash in this way, because literally anything can be the source of evil.
As the answer in this question says, I even tried module function support (which uses most lua sql extensions, but was deprecated in 5.2), but the program still crashes or just complains about a seemingly endless amount of missing dependencies. And, having spent hours tracking (seemingly) all the dependencies he could complain about, he still falls.
Changing the project source code to use the Lua 5.1 source leads to disruption of the projectβs functionality, which leads to various compiler errors regarding missing functions related to 5.2. Associating a MySQL C / C ++ connector with a project leads to rather vague runtime errors that seem to contradict the way the project implements Lua 5.2.
Are there ANY sqlite / MySQL extensions that actually work with Lua 5.2 on a 32-bit Windows machine? Preferably, "prebuilt" precompiled binaries with Lua source / ffi bindings?
OR, alternatively, are there clear instructions on how to properly configure this setting, without having to retrieve separate network instructions for each required build?
source share