包含Go API项目的所有源代码、配置文件、Docker配置、文档和前端资源 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
367 B
Go
16 lines
367 B
Go
package common
|
|
|
|
const (
|
|
DatabaseTypeMySQL = "mysql"
|
|
DatabaseTypeSQLite = "sqlite"
|
|
DatabaseTypePostgreSQL = "postgres"
|
|
)
|
|
|
|
var UsingSQLite = false
|
|
var UsingPostgreSQL = false
|
|
var LogSqlType = DatabaseTypeSQLite // Default to SQLite for logging SQL queries
|
|
var UsingMySQL = false
|
|
var UsingClickHouse = false
|
|
|
|
var SQLitePath = "one-api.db?_busy_timeout=5000"
|