Download common/database.go from AZILS/new-api: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/AZILS/new-api/resolve/main/common/database.go
- Command line
-
hf download hf://spaces/AZILS/new-api/common/database.go
-
curl -L -o database.go https://huggingface.co/spaces/AZILS/new-api/resolve/main/common/database.go
368 Bytes
| 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=30000" | |