|orwell96 d4593491ef Strip trailing \r's also for first and last line||1 year ago|
|tests||1 year ago|
|api.md||1 year ago|
|atomic.lua||1 year ago|
|init.lua||1 year ago|
|license.txt||1 year ago|
|mod.conf||1 year ago|
|readme.md||1 year ago|
|serialize.lua||1 year ago|
|settingtypes.txt||1 year ago|
A Minetest mod library for safely storing large amounts of data in on-disk files. Created out of the need to have a robust data store for advtrains.
The main purpose is to load and store large Lua table structures into files, without loading everything in memory and exhausting the function constant limit of LuaJIT.
Also contains various utilities to handle files on disk in a safe manner, retain multiple versions of the same file a.s.o.
For API documentation, see
serialize_lib includes two configuration options:
Enable strict file loading mode
If enabled, if any error occurs during loading of a file using the 'atomic' API, an error is thrown. You probably need to disable this option for initial loading after creating the world.
Do not automatically switch to "Windows mode" when saving atomically
Normally, when renaming filename.new to filename fails, serialize_lib automatically switches to a mode where it deletes filename prior to moving. Enable this option to prevent this behavior and abort saving instead.
serialize_lib Copyright (C) 2020-2021 orwell96
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.