Skip to content

Conversation

@tobyev
Copy link
Contributor

@tobyev tobyev commented Oct 10, 2025

I completed my Lesson 25 homework by adding a new SQL queries file (lesson_25/db/db_app/src/main/resources/queries/lesson25_toby_evans.sql),
creating a library_users table with seeded users in the SQLite DB, implementing LibraryUserModel and LibraryUserRepository, and wiring users into the LibraryDataModel via LibraryDbDataLoader .I confirmed the project builds and runs with ./gradlew :db_app:run, and all changes were staged, committed, pushed, and are ready for review on the branch feat/lesson-25-hw-toby-evans.

Problem area(s):

  • Targeting the wrong module path ( db/...) instead of the correct lesson_25/db/...
  • Heredoc creation hiccup (file wasn't created until the closing EOF was on its own line)
  • SQLite "unable to open database file" due to using the wrong DB path
  • Not finding the Gradle wrapper at repo root (needed to run from lesson_25/db)
  • sed insertion didn't match return dataModel; on first try (regex tweak required)

Lessons learned:

  • Verify module paths before creating/moving files; prefer lesson_25/db/db_app/...
  • When using heredocs, ensure the final line is exactly EOF with no extra spaces
  • Always run SQLite against the actual DB file ( lesson_25/.../sqlite/data.db ) and verify with .schema
  • Run Gradle from the module that contains the wrapper (lesson_25/db/gradlew )
  • Use grep checks before/after automated edits and confirm with a rebuild/run

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