PLZ ADD Built-in Lua DB Lib TO MT !!!!!!!!!!!!!!!!!!!!!!!!

Post Reply
User avatar
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 !!!!!!!!!!!!!!!!!!!!!!!!

by LMD » Post

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.
Last edited by LMD on Fri Mar 16, 2018 20:36, edited 1 time in total.
My stuff: Projects - Mods - Website

User avatar
SonosFuer
Member
Posts: 104
Joined: Sun Jul 09, 2017 00:32
GitHub: apachano
IRC: SonosFuer
In-game: SonosFuer

Re: Built-in Lua DB Lib ?

by SonosFuer » Post

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

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: Built-in Lua DB Lib ?

by hajo » Post

LMD wrote:Is there a way to access DBs in LUA
See the lua-wiki about DatabaseAccess.

User avatar
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 ?

by rubenwardy » Post

Not yet, but this is planned
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Built-in Lua DB Lib ?

by Linuxdirk » Post

SonosFuer wrote:Just curious, Why?
Because currently there are no backends that are properly supported (i.e. all green or blue) out-of-the-box.

https://wiki.minetest.net/Database_backends
Last edited by Linuxdirk on Wed Mar 14, 2018 12:53, edited 1 time in total.

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: Built-in Lua DB Lib ?

by Pyrollo » Post

SonosFuer wrote:Just curious, Why?
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...).
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
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 !!!!!!!!!!!!!!!!!!!!!!

by LMD » Post

*hope this bumps the thread it is really important*
My stuff: Projects - Mods - Website

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: PLZ ADD Built-in Lua DB Lib TO MT !!!!!!!!!!!!!!!!!!!!!!

by sofar » Post

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests