feat: submit sqlh to awesome-go, add missing tests and badge (#38)#43
Merged
Conversation
…awesome-go badge and docs updates (#38)
kirill-scherba
commented
Jun 12, 2026
kirill-scherba
left a comment
Owner
Author
There was a problem hiding this comment.
Verdict: REQUEST CHANGES
Architecture
- The PR keeps the implementation architecture intact: no production API or SQL generation path is changed, and the added tests are isolated in the existing SQLite test suite. That part fits the existing design.
Correctness
- Blocking:
README.mdadds theMentioned in Awesome Gobadge beforesqlhis actually accepted/listed inavelino/awesome-go. The upstream PR is still open (avelino/awesome-go#6401), so this badge is currently a false project status signal. awesome-go's own CONTRIBUTING guide presents this badge under the post-acceptance section ("Congrats, your project got accepted - what now"), not as a submission badge. Do not merge this badge until the upstream PR is accepted. Fix by either removing the README badge from this PR, or replacing it with a neutral note elsewhere that says the submission PR is pending. - Non-blocking cleanup: the
TestGetLastInsertID/Unsupported driversubtest name/comment does not match what it tests. It opens SQLite and assertsdetectDialect(db)does not panic; it does not cover an unsupported driver. Rename the subtest/comment to reflect the real behavior, or add a true fake-driver test if unsupported-driver coverage is intended.
Tests
go test ./...passes locally in the worktree.- The added tests improve coverage for helper constructors, rollback behavior, table wrapper
InsertId, SQLitegetLastInsertID, and dialect fallback for*sql.Tx. No production behavior regression found.
Docs / Memory Bank consistency
docs/progress.mdanddocs/projectbrief.mdwere updated, which is correct because this PR changes project distribution/marketing status.- However, README docs are not consistent with reality until awesome-go accepts the upstream PR. Keep Memory Bank entries that say "submitted / awaiting review"; remove the accepted-status badge from README until acceptance.
Required fix before approval
- Remove the
Mentioned in Awesome Gobadge fromREADME.mduntilavelino/awesome-go#6401is merged. - Optionally rename the misleading
Unsupported drivertest subcase/comment.
No ai/approved label added.
kirill-scherba
commented
Jun 12, 2026
kirill-scherba
left a comment
Owner
Author
There was a problem hiding this comment.
Verdict: APPROVE
Architecture
- The PR remains correctly scoped: no production API, SQL generation, or transaction semantics are changed.
- Added tests are isolated to the existing SQLite-focused test suite and exercise helper constructors, callback rollback behavior, table wrapper delegation, SQLite
getLastInsertID, dialect detection,*sql.Txfallback handling, and non-PostgreSQLrebindpassthrough. - The prior README badge issue is fixed: the repository no longer claims accepted awesome-go status before upstream acceptance.
Correctness
- The blocking issue from the previous review is resolved: the premature
Mentioned in Awesome Gobadge was removed fromREADME.md. - The misleading
Unsupported driversubtest was renamed todetectDialect does not panic with real driver, and its comment now matches the actual behavior under test. - The awesome-go submission status remains correctly represented as pending via
avelino/awesome-go#6401. - No behavior regressions found in the production code because only tests and documentation are changed.
Tests
- Verified locally in the worktree with
go test -count=1 ./.... - Result: all packages pass.
Docs / Memory Bank consistency
docs/progress.mdnow correctly says the README badge is deferred until upstream acceptance.docs/projectbrief.mdaccurately records that sqlh was submitted to awesome-go PR #6401, without claiming acceptance.- Documentation state is now consistent with the actual repository state and upstream PR lifecycle.
No blocking issues remain. ai/approved labels may be applied to PR #43 and issue #38.
Owner
Author
|
Approved after fixes review. All review findings from the earlier round were resolved:
|
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.
This PR prepares sqlh for the awesome-go list submission (issue #38) and adds missing test coverage for previously untested helper functions.
Changes
Quality improvements for awesome-go criteria
SetWheresJoinAnd,SetDistinct,SetName,SetNumRows/GetNumRowsInsertWithCallbackerror/rollback pathTable[T].InsertIdwrapperTable[T].Closeno-op behaviorgetLastInsertIDSQLite path (via transaction)detectDialectanddialectFromQuerierwith*sql.Txfallbackrebindpassthrough for non-PostgreSQL dialectsDocumentation
docs/progress.mdwith awesome-go submission statusdocs/projectbrief.mdwith current version and distribution linksawesome-go PR
Verification
go test ./...).github/workflows/test.ymlwith SQLite, MySQL, PostgreSQLCloses #38