I thought it would be possible to access MySQL or SQLite from Lua(La)TeX, but couldn't google up anything on the topic.

Please give me pointers to:

  • Snippets / Examples / Documentation on that, if available
  • Whether I should rather look this up in the Lua community

I explicitly list SQLite here, as I want to make this work for the low-tech users collaborating through DropBox or the like.

  • 2
    Context comes with an SQL interface out of the box. – Philipp Gesang Mar 27 '14 at 18:41
  • @phg ... so does PHP - common denominator: They are both not LaTeX. – arney Mar 27 '14 at 22:33
  • 1
    a) That’s a destestable comparison by any conceivable moral standard; b) it’s a lot easier to port Context code to Latex than PHP, so it should be relevant as a starting point; c) you surrounded the “La” in “Lua(La)TeX” in parentheses and omitted the “Latex” tag, so my comment is 100% relevant to the question as you put it. – Philipp Gesang Mar 28 '14 at 18:07
  • See my answer here: tex.stackexchange.com/a/48233/243 – topskip Apr 13 '14 at 17:54

The SQLite organization provides the LuaSQLite library, with documentation and examples. I guess if you want more help with the lua code itself the Lua community is more suited for more in depth support, if further questions are about the implementation with lualatex this is an at least equally appropriate site to ask your questions.

| improve this answer | |

LuaSQL can be used with LuaTeX.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.