Logo
Explore Help
Register Sign In
oadmin/new-api
1
0
Fork 0
You've already forked new-api
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
1236fa8fe42f8fc736c4450836bc5b93b05e0f85
new-api/common/database.go

9 lines
169 B
Go
Raw Normal View History

fix: fix postgresql support (#606) * fix postgresql support fixes #517 * fix: fix pg support * chore: delete useless code --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +08:00
package common
var UsingSQLite = false
var UsingPostgreSQL = false
chore: drop idx_channels_key on start
2024-03-12 00:35:12 +08:00
var UsingMySQL = false
feat: Add automatic channel disabling based on configurable keywords - Introduce AutomaticDisableKeywords setting to dynamically control channel disabling - Implement AC search for matching error messages against disable keywords - Add frontend UI for configuring automatic disable keywords - Update localization with new keyword-based channel disabling feature - Refactor sensitive word and AC search logic to support multiple keyword lists
2025-02-13 16:39:17 +08:00
var UsingClickHouse = false
fix: fix postgresql support (#606) * fix postgresql support fixes #517 * fix: fix pg support * chore: delete useless code --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +08:00
add sqlite busy_timeout=5000
2023-11-23 03:48:30 +08:00
var SQLitePath = "one-api.db?_busy_timeout=5000"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 24.7.0 Page: 517ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API