Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy CRUD Operations Support #2102

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Easy CRUD Operations Support #2102

wants to merge 2 commits into from

Conversation

niting3c
Copy link

@niting3c niting3c commented Aug 4, 2024

Description

This is a CRUD Repository Implementation for PGX pool connections and provides an easier way of using CRUD and pagination support for GET Queries.

How to Use :

Inputs: 1st Argument is your SQL Query, followed by the arguments in order needed by the query.
It also supports transaction management , can also be used in a context based setting.

Sample Service: https://github.com/niting3c/gin-wire-starter
Specific DB FIle: https://github.com/niting3c/gin-wire-starter/blob/main/internal/app/repository/userRepository.go

Testing:

  • Unit tests are provided
  • It has been tested and in use in multiple of my Corporate Projects

@jackc
Copy link
Owner

jackc commented Aug 5, 2024

Was this PR intended for the main pgx repo? Everything is in an internal path so it wouldn't be usable.

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