[PR #347] [MERGED] feat(db): enhance database configuration with charset and extras support #460

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/347
Author: @Yeuoly
Created: 6/16/2025
Status: Merged
Merged: 6/18/2025
Merged by: @41tair

Base: mainHead: feat/db-extras


📝 Commits (1)

  • 04b6263 feat(db): enhance database configuration with charset and extras support

📊 Changes

5 files changed (+118 additions, -50 deletions)

View changed files

📝 .env.example (+3 -0)
📝 internal/db/init.go (+28 -24)
📝 internal/db/mysql/mysql.go (+29 -13)
📝 internal/db/pg/pg.go (+53 -10)
📝 internal/types/app/config.go (+5 -3)

📄 Description

  • Updated .env.example to include DB_EXTRAS and DB_CHARSET variables.
  • Refactored InitPluginDB functions for PostgreSQL and MySQL to accept a configuration struct, allowing for more flexible database connection settings.
  • Adjusted connection pool settings to utilize new configuration options for charset and extras.

This change improves the configurability of database connections and prepares the codebase for future enhancements.


🔄 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/347 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 6/16/2025 **Status:** ✅ Merged **Merged:** 6/18/2025 **Merged by:** [@41tair](https://github.com/41tair) **Base:** `main` ← **Head:** `feat/db-extras` --- ### 📝 Commits (1) - [`04b6263`](https://github.com/langgenius/dify-plugin-daemon/commit/04b62638f6672153d24dd67697b6d4b1f0ff2075) feat(db): enhance database configuration with charset and extras support ### 📊 Changes **5 files changed** (+118 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+3 -0) 📝 `internal/db/init.go` (+28 -24) 📝 `internal/db/mysql/mysql.go` (+29 -13) 📝 `internal/db/pg/pg.go` (+53 -10) 📝 `internal/types/app/config.go` (+5 -3) </details> ### 📄 Description - Updated .env.example to include DB_EXTRAS and DB_CHARSET variables. - Refactored InitPluginDB functions for PostgreSQL and MySQL to accept a configuration struct, allowing for more flexible database connection settings. - Adjusted connection pool settings to utilize new configuration options for charset and extras. This change improves the configurability of database connections and prepares the codebase for future enhancements. --- <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:02 -05:00
yindo closed this issue 2026-02-16 01:16:02 -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#460