cstack / db_tutorial

Writing a sqlite clone from scratch in C
https://cstack.github.io/db_tutorial
MIT License
9.56k stars 968 forks source link

Can anyone tell me why are we doing serialize_row and deserialize_row? #61

Closed avinashkanaujiya closed 4 years ago

avinashkanaujiya commented 4 years ago

Is it to copy the row_to_insert pointer to new pointer?

WangTingZheng commented 3 years ago

To copy different rows to one page, before that, you must serialize struct row to same format : void *. If you want, base on this, you can write page to disk conveniently.

rakshitraj commented 1 year ago

Could someone offer more clarity on this? @cstack