MCPcopy Create free account
hub / github.com/FlashpointProject/FlashpointUltimateUpdater / GetTotalDownladedFiles

Method GetTotalDownladedFiles

repo.go:50–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (repo *SqliteRepo) GetTotalDownladedFiles() (int64, error) {
51 var total int64
52 err := repo.db.QueryRow("SELECT COUNT(*) FROM files WHERE done = true").
53 Scan(&total)
54 if err != nil {
55 return 0, err
56 }
57 return total, nil
58}
59
60func (repo *SqliteRepo) MarkFileDone(file *IndexedFile) error {
61 _, err := repo.db.Exec("UPDATE files SET done = true WHERE path = ?", file.Filepath)

Callers 1

loadDatabaseResumeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected