db_tutorial
db_tutorial copied to clipboard
Writing a sqlite clone from scratch in C
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.5.2 to 2.8.0. Changelog Sourced from addressable's changelog. Addressable 2.8.0 fixes ReDoS vulnerability in Addressable::Template#match no longer replaces + with spaces in queries for non-http(s) schemes fixed...
Hello, I'm still a learner of the c programming language and database. The below line has `uint8_t` but the definitions above it are all `uint32_t`, I think they should use...
After implementing B-tree, each node occupies exactly one page of the table, so there is no need to test whether db file is a whole number of pages in `pager_open`...
Update new markdown syntax for import image
Should we create a folder for uploading code of each parts It help to copy and read code easier or someone can jump around with code.
Hello, the test ruby script I wrote according to your article cannot run, can you tell me the solution
``` void deserialize_row(void* source, Row* destination) { memcpy(&(destination->id), source + ID_OFFSET, ID_SIZE); memcpy(&(destination->username), source + USERNAME_OFFSET, USERNAME_SIZE); memcpy(&(destination->email), source + EMAIL_OFFSET, EMAIL_SIZE); } ``` We know that the clang stirng...
I have reached section 4, and its already hurting my brain how many assumptions this tutorial has on the pre requisites we need. 1. What compiler should I be using,...
View issue #45 Fixes the compilation error on all platforms: error: initializer element is not constant
error: initializer element is not constant const uint32_t USERNAME_OFFSET = ID_OFFSET + ID_SIZE; ^~~~~~~~~ /cygdrive/c/Users/RJ/CLionProjects/DB Minor/rj/db.c:56:31: error: initializer element is not constant const uint32_t EMAIL_OFFSET = USERNAME_OFFSET + USERNAME_SIZE; ^~~~~~~~~~~~~~~...