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

Function UsingLogDatabase

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

Source from the content-addressed store, hash-verified

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

Callers 11

RecordAuditLogFunction · 0.92
GetAuditLogsFunction · 0.92
MigrateAuditLogsFunction · 0.92
buildLogLikeConditionFunction · 0.92
GetLogByTokenIdFunction · 0.92
GetAllLogsFunction · 0.92
GetUserLogsFunction · 0.92
streamLogsFunction · 0.92
DeleteOldLogBatchFunction · 0.92
InitLogDBFunction · 0.92
migrateLOGDBFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected