Question Is there a standard for data saving and if so using what?

Sexy Fat Man

New member
Feb 11, 2025
4
0
1
For example is it a standard to use a local db in the form of sqlite or externals like mongoDB etc? If there is, could you point me towards any useful resources and also any plugins/packages that could be used to interaction between the mod and the database?
 

stefvanschie

Moderator
Staff member
Dec 17, 2021
137
7
27
28
I don't think there's much of a standard here. For local file storage, JSON is pretty common, some people use HOCON and a lot of people (ab)use YAML. For databases it's pretty much standad to use something SQL, like MySQL or PostgreSQL, with SQLite for local databases.
 
  • Like
Reactions: Sexy Fat Man

Sexy Fat Man

New member
Feb 11, 2025
4
0
1
I don't think there's much of a standard here. For local file storage, JSON is pretty common, some people use HOCON and a lot of people (ab)use YAML. For databases it's pretty much standad to use something SQL, like MySQL or PostgreSQL, with SQLite for local databases.

Fair enough. Looked at other plugins they utilize sql/jdbc for databases and/or local sql dbs. I also dont recommend suggesting JSON as it is prone to corruption/data loss in big operations. But thanks.