MCPcopy Create free account
hub / github.com/QuantumNous/new-api / UsingLogDatabase

Function UsingLogDatabase

common/database.go:40–42  ·  view source on GitHub ↗
(databaseType DatabaseType)

Source from the content-addressed store, hash-verified

38}
39
40func UsingLogDatabase(databaseType DatabaseType) bool {
41 return logDatabaseType == databaseType
42}
43
44// SQLitePath is the DSN for the default SQLite database. It uses WAL journal
45// mode so readers are never blocked by the single writer, plus a 30s busy

Callers 7

buildLogLikeConditionFunction · 0.92
GetLogByTokenIdFunction · 0.92
GetAllLogsFunction · 0.92
GetUserLogsFunction · 0.92
DeleteOldLogBatchFunction · 0.92
InitLogDBFunction · 0.92
migrateLOGDBFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected