Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToDatabase ¶
ConnectToDatabase establishes a connection to a PostgreSQL database Configures connection pooling and verifies connectivity Returns the database handle or an error if the connection fails
func WithTransaction ¶ added in v1.1.3
func WithTransaction(database *sql.DB, operation TransactionFunction) (err error)
WithTransaction executes a database transaction with retry logic for PostgreSQL, improved panic handling, simplified timestamps, and detailed logging.
Types ¶
type TransactionFunction ¶ added in v1.1.3
TransactionFunction defines the signature for the transactional operation.
Click to show internal directories.
Click to hide internal directories.