Page 1 of 1

Accessing SQLite database from other processses

PostPosted: Sun Feb 03, 2013 13:42
by rarkenin
On the SQLite FAQ, I read that if I want a mod to use Python to write to the SQLite database at runtime, that is possible... if Minetest properly locks the tables and is willing to wait for a lock.

So, will Minetest server acquire a lock on the SQLite database, and more importantly, will it wait for the lock without blocking other processes? I think a mod using IPC with Python could be useful.

PostPosted: Sun Feb 03, 2013 20:48
by BrandonReese
I think more importantly how will you notify minetest that changes have been made to the database if the nodes or objects you are manipulating have already been loaded into memory by the server?

PostPosted: Sun Feb 03, 2013 20:49
by rarkenin
BrandonReese wrote:I think more importantly how will you notify minetest that changes have been made to the database if the nodes or objects you are manipulating have already been loaded into memory by the server?


That's important. I haven't thought of that. Is there a way to detect whether a chunk is loaded(but not necessarily be able to do something if it isn't)?