Repository navigation
docs: demonstrate everyday reads in the sample and quickstart - #34
Merged
omer-cengel merged 2 commits intoSep 25, 2026
Merged
Conversation
The external sample gains a books table and five queries, and its application checks a case-insensitive search, a scalar count, a page, a book insert, and a left join that reads a null title for an unmatched author. Release verification now resets both tables and checks the five new generated repository methods.
omer-cengel
deleted the
chore/sample-search-count-page-and-left-join
branch
September 25, 2026 18:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The external Maven/PostgreSQL sample and the quickstart now demonstrate the everyday read operations sqlcj supports. A case-insensitive text search, a scalar count, a paged list, and a narrow left-join projection sit beside the existing optional lookup, all as methods of the single generated
AuthorRepository. This lets new users see those queries compiled, generated, and run end to end against PostgreSQL.Changes
bookstable whoseauthor_idreferencesauthors (id).SearchAuthors(name ILIKE $1), generatingsearchAuthors(String name);CountAuthors(COUNT(*) AS total), returningCountAuthorsResultwith a non-nullLong total;ListAuthorPage(LIMIT $1 OFFSET $2), generatinglistAuthorPage(Integer limit, Integer offset);CreateBook, an:execinsert;ListAuthorBooks, aLEFT JOINreturningListAuthorBooksResult.nulltitle for the author without a book.Scope and non-goals
sqlcj.yamlare unchanged. The sample still generates one repository from one query group.BETWEEN) andIS NULLfilters are supported but are not demonstrated in the sample.