Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality to configure external databases for event storage #125

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

butschster
Copy link
Member

This commit introduces the ability to configure an external database for storing events. The configuration can be done via environment variables, allowing the use of different types of databases such as MongoDB, PostgreSQL, or MySQL.

By default, all events are stored in a local in-memory storage. However, with this update, users can now opt to use an external database by setting the PERSISTENCE_DRIVER environment variable to database or mongodb and providing the necessary database connection details.

Database

PERSISTENCE_DRIVER=database
DB_DRIVER=pgsql # mysql, pgsql
DB_DATABASE=buggregator
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USERNAME=homestead
DB_PASSWORD=secret

MongoDB

PERSISTENCE_DRIVER=mongodb
MONGODB_CONNECTION=mongodb:https://127.0.0.1:27017
MONGODB_DATABASE=buggregator

This enhancement provides more flexibility in terms of data persistence and storage options for events."

This commit introduces the ability to configure an external database for storing events. The configuration can be done via environment variables, allowing the use of different types of databases such as MongoDB, PostgreSQL, or MySQL.
@butschster butschster added the enhancement New feature or request label Apr 8, 2024
@butschster butschster added this to the 1.0 milestone Apr 8, 2024
@butschster butschster self-assigned this Apr 8, 2024
@butschster butschster linked an issue Apr 8, 2024 that may be closed by this pull request
@butschster butschster merged commit 6aa0365 into master Apr 8, 2024
2 checks passed
@butschster butschster deleted the feature/external-database branch April 8, 2024 10:13
@butschster butschster restored the feature/external-database branch April 8, 2024 10:13
@butschster butschster deleted the feature/external-database branch April 8, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

External database support
1 participant