Found in 1 comment on Hacker News
gavinray · 2023-04-18 · Original thread
There is a book that is exactly this, "Database Design and Implementation" by Edward Sciore.

You write a database in Java while having the principles explained along the way.

https://www.amazon.com/Database-Design-Implementation-Data-C...

Fresh book recommendations delivered straight to your inbox every Thursday.