[PR #491] [CLOSED] Set both pg and mysql config #537

Closed
opened 2026-02-16 01:16:16 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/491
Author: @longbingljw
Created: 11/1/2025
Status: Closed

Base: mainHead: dbconfig


📝 Commits (5)

📊 Changes

5 files changed (+69 additions, -10 deletions)

View changed files

📝 .env.example (+20 -4)
📝 cmd/server/main.go (+5 -0)
📝 internal/db/init.go (+1 -1)
📝 internal/types/app/config.go (+42 -4)
📝 internal/types/app/default.go (+1 -1)

📄 Description

Description

Set separate USERNAME, PASSWORD, HOST, and PORT for both PostgreSQL and MySQL in the .env file, and use DB_TYPE to control which set of credentials to use for the database connection..So user can only change DB_TYPE to switch db config for plugin-daemon.
Closes #490

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

I hope this feat can be merged as fast as passible.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/491 **Author:** [@longbingljw](https://github.com/longbingljw) **Created:** 11/1/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dbconfig` --- ### 📝 Commits (5) - [`7122f06`](https://github.com/langgenius/dify-plugin-daemon/commit/7122f0629469ec1bd3c180c44ba44ed1764e6aca) Set both pg and mysql config - [`da0e0a5`](https://github.com/langgenius/dify-plugin-daemon/commit/da0e0a5f3eac2334cc53dddd0be1e7edc2d22d52) fix - [`936cb45`](https://github.com/langgenius/dify-plugin-daemon/commit/936cb4549f3389ff1b7349a02005758eb3afa3f6) config adapt fix - [`0690715`](https://github.com/langgenius/dify-plugin-daemon/commit/0690715cb2a71827a6f07e16c34d3be0e14fc745) fix - [`745758c`](https://github.com/langgenius/dify-plugin-daemon/commit/745758c9dab7c13214ad8eb6b725543392f75e28) Merge branch 'main' of github.com:langgenius/dify-plugin-daemon into dbconfig ### 📊 Changes **5 files changed** (+69 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+20 -4) 📝 `cmd/server/main.go` (+5 -0) 📝 `internal/db/init.go` (+1 -1) 📝 `internal/types/app/config.go` (+42 -4) 📝 `internal/types/app/default.go` (+1 -1) </details> ### 📄 Description ## Description Set separate USERNAME, PASSWORD, HOST, and PORT for both PostgreSQL and MySQL in the .env file, and use DB_TYPE to control which set of credentials to use for the database connection..So user can only change DB_TYPE to switch db config for plugin-daemon. Closes #490 ## Type of Change - [ ] Bug fix - [X] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [X] I have tested the changes locally and confirmed they work as expected - [ ] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [x] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information I hope this feat can be merged as fast as passible. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:16 -05:00
yindo closed this issue 2026-02-16 01:16:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#537