package
0.0.0-20220211115818-ec4765fab2e5
Repository: https://github.com/reshimahendra/lbw-go.git
Documentation: pkg.go.dev
# README
DATABASE
Database folder containing database connection function and method to our postgresql server. To connect with the database, we are using pgx to get best performance. The db.go
file contain database pool connection preparation and validation for the established pool connection.
File Structure
|-- database
|-- |-- sql
|-- |-- |-- user.sql
|-- |-- db.go
|-- |-- README.md
# Functions
NewDBPool is to create new pool connection to database.
# Interfaces
IDatabase is interface to pgxpool method.