We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d1ede commit c3d5432Copy full SHA for c3d5432
_parts/part5.md
@@ -66,7 +66,7 @@ I'm renaming `new_table()` to `db_open()` because it now has the effect of openi
66
+ Pager* pager = pager_open(filename);
67
+ uint32_t num_rows = pager->file_length / ROW_SIZE;
68
+
69
- Table* table = malloc(sizeof(Table));
+ Table* table = calloc(sizeof(Table));
70
- table->num_rows = 0;
71
+ table->pager = pager;
72
+ table->num_rows = num_rows;
@@ -413,7 +413,7 @@ Until then!
413
414
415
416
417
418
419
0 commit comments