Skip to content

Conversation

@tobyev
Copy link
Contributor

@tobyev tobyev commented Oct 13, 2025

I made updates to my Lesson 25 homework by adding a SQL queries file (lesson25_toby_evans.sql) with the three required queries, creating a library_users table with seeded users, implementing LibraryUserModel and LibraryUserRepository, and wiring users into the LibraryDataModel via LibraryDbDataLoader .

I also corrected the "total pages checked out" query to join checked_out_items with media_items . My changes were staged, committed, pushed, and are ready for review on feat/lesson-25-hw-toby-evans (with follow-up fixes on fix/lesson-25-ci-toby-evans).

Problem area (s):
• Running Gradle from the wrong project path for Lesson 25
• SQLite "unable to open database file" from pointing at the wrong DB location
• Initial pages sum query missing a join to media_items
• sed insertion not matching return dataModel; in LibraryDbDataLoader

Lessons learned:
• Double-check module paths before running builds (lesson_25/db vs repo root)
• Verify the actual DB file and schema with SQLite before querying
• Use the correct JOINS for aggregate queries that reference fields in other tables
• Make small, testable commits and re-run checks after each change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants