Cuberite Forum
Using database systems with Cuberite plugins - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Using database systems with Cuberite plugins (/thread-2078.html)



Using database systems with Cuberite plugins - sphinxc0re - 08-03-2015

Many bukkit plugins use a database system like MySQL to store custom data. What about including
https://keplerproject.github.io/luasql/doc/us/manual.html
into the server so anyone can acces any database system he/she wants to?


RE: Using database systems with Cuberite plugins - tonibm19 - 08-03-2015

You can already use SQLite on lua plugins


RE: Using database systems with Cuberite plugins - sphinxc0re - 08-03-2015

I know, that's not the point


RE: Using database systems with Cuberite plugins - xoft - 08-03-2015

Problem with DBs is that they can block. Imagine a transaction deadlock happening in a player click handler - the server would wait in the tick thread for 30 seconds for the DB to time out. Not sure if it's worth the trouble.


RE: Using database systems with Cuberite plugins - xoft - 08-03-2015

Or rather, not sure if it's usable, or we need callback-based SQL layer.