xaizek / uncov (License: AGPLv3+) (since 2018-12-07)
Uncov(er) is a tool that collects and processes code coverage reports.
Commit 74d9cea78e26788e0d6b4a90d162756e082444df

Create index on files table of the database
This bump database version even though no data is moved around because
that's how a database update is done.
Author: xaizek
Author date (UTC): 2022-04-06 16:25
Committer name: xaizek
Committer date (UTC): 2022-04-06 16:25
Parent(s): 4934d1dad60649ed2b85afe3d851b32f30553ea4
Signing key: 99DC5E4DB05F6BE2
Tree: 5733059c44dac28f31e637c2658fc6d2f57499fe
File Lines added Lines deleted
src/BuildHistory.cpp 6 1
tests/test-repo/_git/uncov.sqlite 0 0
File src/BuildHistory.cpp changed (mode: 100644) (index 630e536..5cf0086)
... ... static std::string hashCoverage(const std::vector<int> &vec);
34 34 static void updateDBSchema(DB &db, int fromVersion); static void updateDBSchema(DB &db, int fromVersion);
35 35
36 36 //! Current database scheme version. //! Current database scheme version.
37 const int AppDBVersion = 1;
37 const int AppDBVersion = 2;
38 38
39 39 File::File(std::string path, std::string hash, std::vector<int> coverage) File::File(std::string path, std::string hash, std::vector<int> coverage)
40 40 : path(std::move(path)), hash(std::move(hash)), : path(std::move(path)), hash(std::move(hash)),
 
... ... updateDBSchema(DB &db, int fromVersion)
323 323 ) )
324 324 )"); )");
325 325 // Fall through. // Fall through.
326 case 1:
327 db.execute(R"(
328 CREATE INDEX files_idx ON files(path, hash, covhash)
329 )");
330 // Fall through.
326 331 case AppDBVersion: case AppDBVersion:
327 332 break; break;
328 333 } }
File tests/test-repo/_git/uncov.sqlite changed (mode: 100644) (index 8d5198d..cf3e250)
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/uncov

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/uncov

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master