pgx icon indicating copy to clipboard operation
pgx copied to clipboard

Easy CRUD Operations Support

Open niting3c opened this issue 1 year ago • 1 comments

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

niting3c avatar Aug 04 '24 15:08 niting3c

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

jackc avatar Aug 05 '24 13:08 jackc