It is no secret MT uses DBs to store worlds.
Is there a way to access DBs in LUA without having to use a custom lib ? Is there already an included lib ? If not, we should consider adding SQLite : http://lua.sqlite.org/index.cgi/doc/tip ... lite3.wiki maybe, or something else...
EDIT : The core developer/build team should really consider including LuaSQLite3 in their builds, it should be kinda default in MT.
PLZ ADD Built-in Lua DB Lib TO MT !!!!!!!!!!!!!!!!!!!!!!!!
- LMD
- Member
- Posts: 1397
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
PLZ ADD Built-in Lua DB Lib TO MT !!!!!!!!!!!!!!!!!!!!!!!!
Last edited by LMD on Fri Mar 16, 2018 20:36, edited 1 time in total.
- SonosFuer
- Member
- Posts: 104
- Joined: Sun Jul 09, 2017 00:32
- GitHub: apachano
- IRC: SonosFuer
- In-game: SonosFuer
Re: Built-in Lua DB Lib ?
Just curious, Why?
Working on a content database for minetest mods, servers, and etc Check it out and give me feedback at viewtopic.php?f=14&t=18137
Re: Built-in Lua DB Lib ?
See the lua-wiki about DatabaseAccess.LMD wrote:Is there a way to access DBs in LUA
'My' wiki-pages: Build-a-home - basic-robot - basic_robot_csm - basic-machines - digtron - xdecor -
Map-Database
Map-Database
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Built-in Lua DB Lib ?
Not yet, but this is planned
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Built-in Lua DB Lib ?
Because currently there are no backends that are properly supported (i.e. all green or blue) out-of-the-box.SonosFuer wrote:Just curious, Why?
https://wiki.minetest.net/Database_backends
Last edited by Linuxdirk on Wed Mar 14, 2018 12:53, edited 1 time in total.
- Pyrollo
- Developer
- Posts: 385
- Joined: Mon Jan 08, 2018 15:14
- GitHub: pyrollo
- In-game: Naj
- Location: Paris
Re: Built-in Lua DB Lib ?
IMO it would be much cleaner to have a good database storage for mod information instead of files (DB is supposed to guarantee data againts corruption, all information in one place...).SonosFuer wrote:Just curious, Why?
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]
- LMD
- Member
- Posts: 1397
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: PLZ ADD Built-in Lua DB Lib TO MT !!!!!!!!!!!!!!!!!!!!!!
*hope this bumps the thread it is really important*
Re: PLZ ADD Built-in Lua DB Lib TO MT !!!!!!!!!!!!!!!!!!!!!!
I think most devs are proponents of exposing sqlite (not DB, if we have to be pedantic) into lua, but it may require significant work to make it reasonably safe so that mods can't conflict with eachother. lsqlite3 is easy to port, I could also see this being offered as a standard part of the minetest downloadable ("require 'lsqilte3'") as well to avoid some of those issues.
In any case, enough projects have been made recently that would warrant the inclusion of an SQLite api that I think it'll happen at some point.
In any case, enough projects have been made recently that would warrant the inclusion of an SQLite api that I think it'll happen at some point.
Who is online
Users browsing this forum: No registered users and 20 guests