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 Transaction ¶ added in v1.1.4
func Transaction(database *sql.DB, operation TransactionFunction) (err error)
Transaction executes a database transaction with robust panic handling, consistent timestamps, and enhanced logging for debugging.
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.