Conversation
- internal/dialects: 0% → 100% coverage (all 3 dialects) - internal/util: 41% → 97% coverage (PK ops, sanitize, context) - db.go public API: 66% → 99% coverage (Model, Transactional, Stats) - Total coverage: 80.7% → 88.3%, 1500+ test cases - Fix extractTableName TODO in security/auditor.go - Fix lint issues: misspell, prealloc, staticcheck, cyclop
- Fix Transactional() signature in AGENTS.md (add ctx parameter) - Fix In()/NotIn() examples to use variadic args in AGENTS.md - Fix relica.Raw() → relica.NewExp() in README (Raw doesn't exist) - Fix db.stmtCache.Stats() → db.Stats() in README (private field) - Fix With/WithRecursive call order in CTE and Advanced guides - Fix relica.NewDB() → relica.Open() in Security docs - Fix WithStrictMode() → WithStrict(true) in Security docs - Remove internal/security code examples from README (unexportable) - Add extractTableName/findTableStart tests for auditor - Add internal package usage notes to Security guides
- Add db.BatchInsert(), db.BatchUpdate(), db.Upsert() direct methods - Remove all db.Builder().X() from README in favor of db.X() - Fix non-compiling JOIN examples (methods on SelectQuery, not QueryBuilder) - Update CHANGELOG for v0.10.0 release
…cumentation
- Remove all db.Builder().Method() patterns in favor of db.Method()
- Replace Select("*") with Select() (no-arg defaults to SELECT *)
- Update 20 documentation files for consistent API usage
- Net reduction of 231 lines by removing Builder() indirection
- RELEASE_GUIDE.md: complete rewrite for GitHub Flow (main + feature branches) - CONTRIBUTING.md: update PR workflow to use main as base branch - No more develop branch — main is the single source of truth
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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
Prepare Relica for awesome-go submission: comprehensive testing, API cleanup, documentation overhaul, and workflow migration to GitHub Flow.
Changes
BatchInsert(),BatchUpdate(),Upsert()direct shortcuts on DB (no moreBuilder()needed)Builder()andSelect("*")patterns from 20+ documentation filesextractTableName()(was TODO), fix all lint issues (prealloc, staticcheck, misspell, cyclop)Test plan
go test ./...— all passgolangci-lint run ./...— 0 issuesgo mod verify— cleanBuilder()patterns in public docs (except CHANGELOG historical entries)Select("*")in public docs