Commit Graph

34 Commits

Author SHA1 Message Date
Byron.wang 9c6bbc687f refactor: extract DSN construction to buildDSN for better reuse and readability (#360) 2025-06-25 14:15:47 +08:00
Yeuoly dfc9622e91 feat(db): enhance database configuration with charset and extras support (#347)
- 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.
2025-06-18 12:08:56 +08:00
quicksand 2858ac210c optimize (db): add db pool config (#251) 2025-04-30 15:36:35 +08:00
He Wang 8579ec2eac fix mysql create and add test for mysql transaction (#202) 2025-04-14 20:00:21 +08:00
非法操作 25e013618a fix self.session.delete alway success (#12)
* fix self.session.delete alway success

* fix save data always failed

* redis delete response deleted item num

* add deleted num to invocate response
2025-04-11 13:32:52 +08:00
Yeuoly d43de8b7b2 Merge pull request #157 from lengyhua/main
feat: simplify the process in db migrate & fix comment error
2025-03-29 00:00:16 +09:00
lengyhua b509db50b2 feat: simplify the process in db migrate & fix comment error 2025-03-27 22:00:52 -04:00
He Wang d4aefed92c support to use mysql as plugin db 2025-03-23 14:41:45 +08:00
Yeuoly 2ebf662b23 fix: use default database configuration parameter in database initialization (#77) 2025-03-09 10:09:59 +08:00
Yeuoly 964549d31f feat: enhance database initialization with fallback connection strategy (#58)
- Add support for connecting to a default database when target database connection fails
- Introduce new configuration parameter `DBDefaultDatabase` with default value "postgres"
- Modify `initDifyPluginDB` to attempt connection to default database and create target database if needed
- Update test case to include default database parameter
2025-03-06 13:20:17 +08:00
Yeuoly 13bf5c1cba refactor: modify declaration column handling in database migration 2025-02-25 21:20:57 +08:00
Yeuoly b19140ca23 refactor: optimize plugin declaration caching and encoding (#34) 2025-02-25 20:52:51 +08:00
Yeuoly 548adf4c0c refactor: rename agent to agent strategy 2024-12-12 18:26:55 +08:00
Yeuoly 9be865f868 fix: applying agent to orignal pointer is required during Unmarshaling JSON 2024-12-10 00:14:55 +08:00
Yeuoly 26fd94ebcd refactor: convert snakecase to camelcase 2024-11-12 21:24:41 +08:00
Yeuoly c3ec7d010a feat: support limitations of persistence storage 2024-11-05 19:05:49 +08:00
Yeuoly eeadb3e29c refactor: support upgrade plugin to any verions 2024-10-25 17:41:14 +08:00
Yeuoly 3de55a81ce refactor: installing plugin 2024-10-14 21:07:56 +08:00
Yeuoly df95e36048 fix: endpoints apis 2024-10-08 23:48:57 +08:00
Yeuoly 9679ae00f3 enhancement: support plugin cache 2024-09-27 19:34:05 +08:00
Yeuoly d919d0fbba fix: remote installation 2024-09-27 16:22:47 +08:00
Yeuoly 3e4fe6d4ac fix: missing typename in cache 2024-09-26 15:40:02 +08:00
Yeuoly ab3def1052 feat: add endpoints counter for installation 2024-09-26 11:36:46 +08:00
Yeuoly f42bee7019 install to db 2024-09-19 18:06:30 +08:00
Yeuoly f94ba2de5b feat: support install models tools and endpoints 2024-09-19 17:43:51 +08:00
Yeuoly 8dd58b32c4 refactor 2024-09-09 20:03:32 +08:00
Yeuoly dc402cd948 refactor: plugin id/identity and plugin installation 2024-09-03 22:38:19 +08:00
Yeuoly 586b0018c5 feat: rename webhook to endpoint 2024-08-26 21:24:59 +08:00
Yeuoly e17ff25acc feat: add db tests 2024-08-06 23:31:22 +08:00
Yeuoly d768c548d4 feat: add db testing method 2024-08-06 23:16:23 +08:00
Yeuoly ef091e4fed feat: redirects webhooks 2024-08-05 18:34:50 +08:00
Yeuoly 69c402fcea feat: cluster lifetime management 2024-07-31 18:53:26 +08:00
Yeuoly ce4ce368e2 feat: add db 2024-07-29 16:02:24 +08:00
Yeuoly fcea56e07d feat: add sql 2024-07-29 15:45:24 +08:00