MCPcopy
hub / github.com/mudler/LocalAI / isSQLiteDB

Function isSQLiteDB

core/http/auth/usage.go:138–140  ·  view source on GitHub ↗
(db *gorm.DB)

Source from the content-addressed store, hash-verified

136}
137
138func isSQLiteDB(db *gorm.DB) bool {
139 return strings.Contains(db.Dialector.Name(), "sqlite")
140}
141
142// GetUserUsage returns aggregated usage for a single user.
143func GetUserUsage(db *gorm.DB, userID, period string) ([]UsageBucket, error) {

Callers 4

GetUserUsageFunction · 0.85
GetAllUsageFunction · 0.85
GetUserUsageBySourceFunction · 0.85
GetAllUsageBySourceFunction · 0.85

Calls 2

ContainsMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected