diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-07-23 21:39:11 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-07-23 21:39:11 -0400 |
| commit | 5264264333f211c9d40108955e167d28fa73f77d (patch) | |
| tree | 6801a3d0460360bff5bc0b76ac482fa774e97043 /CHANGELOG.md | |
| parent | Fix contributing link (diff) | |
| download | cli-5264264333f211c9d40108955e167d28fa73f77d.zip | |
Use DSN for handling connection parameters
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 30 |
1 files changed, 30 insertions, 0 deletions
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 |