Discover Packages
github.com/Adithya-Monish-Kumar-K/Distributed-Search-Analytics-Platform
pkg
postgres
package
Version:
v0.0.0-...-e083d15
Opens a new window with list of versions in this module.
Published: Feb 14, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package postgres provides a thin wrapper around database/sql with
connection-pool configuration, health-check support, and a transactional
helper (InTx).
type Client struct {
DB *sql .DB
}
Client manages a PostgreSQL connection pool.
New opens a PostgreSQL connection pool, configures its limits, and pings
the server to verify connectivity.
Close releases the database connection pool.
InTx executes fn inside a database transaction. On error the transaction is
rolled back; on success it is committed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.