How are maps stored in the database?

For people working on the C++ code.
Post Reply
User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

How are maps stored in the database?

by burli » Post

I'm curious and I looked into a sqlite file with a DB Browser. There is just one table with a pos column and a blob. In the pos column there are coordinates as a hash value, I guess. But I'm a little bit surprised that I can find something like this in the blob
default:snowair default:stone default:dirt_with_snow default:dirt default:stone_with_coal
What is stored in these blobs? Is each blob one map block?

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

Re: How are maps stored in the database?

by hajo » Post

burli wrote:I'm curious and I looked into a sqlite file with a DB Browser.
There is just one table with a pos column and a blob. ..
What is stored in these blobs?
Searching the forum for chunk/mapchunk/sql/database/mapgen ...

How about "HELP: minetest .sqlite format" ?

sfan5
Moderator
Posts: 4095
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: How are maps stored in the database?

by sfan5 » Post

Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests