From 5264264333f211c9d40108955e167d28fa73f77d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 23 Jul 2025 21:39:11 -0400 Subject: Use DSN for handling connection parameters --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 0738982..b56d043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,36 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- **BREAKING**: Database connection configuration now uses DSN (Data Source Name) + instead of individual connection parameters. This allows for more flexibility in + the connection parameters since any format and additional options supported by the + driver are now supported. + + **Before:** + ```toml + [database] + host = "localhost" + port = "5432" + user = "myuser" + password = "mypassword" + dbname = "mydb" + driver = "postgresql" + ``` + + **After:** + ```toml + [database] + dsn = "postgresql://myuser:mypassword@localhost:5432/mydb?sslmode=disable" + driver = "postgresql" + ``` + +- **BREAKING**: Environment variables have been simplified to use DSN: + - `BOLT_DB_HOST`, `BOLT_DB_PORT`, `BOLT_DB_USER`, `BOLT_DB_PASSWORD`, `BOLT_DB_NAME` → `BOLT_DB_DSN` + ## [0.10.1] - 2024-08-18 ### Fixed -- cgit v1.2.3