()
| 28 | } |
| 29 | |
| 30 | func (repo *SqliteRepo) GetOverview() (IndexOverview, error) { |
| 31 | var overview IndexOverview |
| 32 | err := repo.db.QueryRow("SELECT name, total_files, total_size, base_url FROM overview LIMIT 1"). |
| 33 | Scan(&overview.Name, &overview.TotalFiles, &overview.TotalSize, &overview.BaseUrl) |
| 34 | if err != nil { |
| 35 | return overview, err |
| 36 | } |
| 37 | return overview, nil |
| 38 | } |
| 39 | |
| 40 | func (repo *SqliteRepo) GetTotalDownloadedSize() (int64, error) { |
| 41 | var total int64 |
no outgoing calls
no test coverage detected