PF-3943 Add sqlutil package with SQLC integration#267
Merged
Conversation
9cdb9ea to
0207cbe
Compare
This commit introduces comprehensive database functionality to the rebuy-go-sdk: - New pgutil package with PostgreSQL utilities and connection management - SQLC integration for type-safe database operations - Complete database layer implementation in the full example - Migration support with embedded SQL files - DataDog tracing integration for database operations - Updated handlers, workers, and templates to use database operations The implementation replaces hardcoded data with real database CRUD operations and provides a solid foundation for database-driven applications. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
a1af3a6 to
f860218
Compare
- Replace standalone README.md with enhanced doc.go package documentation - Add complete usage examples including dependency injection with dig - Include transaction support and connection hijacking patterns - Provide configuration templates and quick start guide - Remove redundant README file in favor of godoc format 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Only ListUsers query is actually used in the codebase. Removed: - All post queries (9 queries): GetPostByID, ListPosts, ListPublishedPosts, etc. - Unused user queries (7 queries): GetUserByID, CreateUser, UpdateUser, etc. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
The templates were moved to comprehensive godoc documentation in the previous commit, making these separate files redundant. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Replace all references to 'sqlutil' with 'pgutil' in function documentation comments to maintain consistency throughout the package. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
der-eismann
approved these changes
Sep 9, 2025
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
sqlutilpackage that consolidates database utilities across rebuy projectsKey Features
Code Quality Improvements
Test Plan
🤖 Generated with Claude Code