Database

Database wrapper with minimal dependencies.

Members

Functions

coverageApi
DbCoverage coverageApi()
Undocumented in source. Be warned that the author may not have intended to support it.
dependencyApi
DbDependency dependencyApi()
Undocumented in source. Be warned that the author may not have intended to support it.
getFile
Nullable!Path getFile(FileId id)
getFileChecksum
Nullable!Checksum getFileChecksum(Path p)
Undocumented in source. Be warned that the author may not have intended to support it.
getFileId
Nullable!FileId getFileId(Path p)
Undocumented in source. Be warned that the author may not have intended to support it.
getFileId
Nullable!FileId getFileId(MutationId id)
getFileIdLanguage
Optional!Language getFileIdLanguage(FileId id)
Undocumented in source. Be warned that the author may not have intended to support it.
getFiles
Path[] getFiles()
getLatestTimeStampOfTestOrSut
Optional!SysTime getLatestTimeStampOfTestOrSut()
getMutationScoreHistory
MutationScore[] getMutationScoreHistory()
getNewestFile
Optional!SysTime getNewestFile()
getRootFiles
FileId[] getRootFiles()
isAnalyzed
bool isAnalyzed(Path p)

If the file has already been analyzed.

isAnalyzed
bool isAnalyzed(Path p, Checksum cs)

If the file has already been analyzed.

isToolVersionDifferent
bool isToolVersionDifferent(ToolVersion compareTo)
Undocumented in source. Be warned that the author may not have intended to support it.
markMutantApi
DbMarkMutant markMutantApi()
Undocumented in source. Be warned that the author may not have intended to support it.
metaDataApi
DbMetaData metaDataApi()
Undocumented in source. Be warned that the author may not have intended to support it.
mutantApi
DbMutant mutantApi()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(Path p, Checksum cs, Language lang, bool isRoot)
Undocumented in source. Be warned that the author may not have intended to support it.
putMutationScore
void putMutationScore(MutationScore score)

Add a mutation score to the history table.

removeAllFiles
void removeAllFiles()

Remove all mutants points from the database.

removeAllMutationPoints
void removeAllMutationPoints()

Remove all mutants points from the database.

removeFile
void removeFile(Path p)

Remove the file with all mutations that are coupled to it.

run
void run(string sql)
Undocumented in source. Be warned that the author may not have intended to support it.
schemaApi
DbSchema schemaApi()
Undocumented in source. Be warned that the author may not have intended to support it.
testCaseApi
DbTestCase testCaseApi()
Undocumented in source. Be warned that the author may not have intended to support it.
testCmdApi
DbTestCmd testCmdApi()
Undocumented in source. Be warned that the author may not have intended to support it.
testFileApi
DbTestFile testFileApi()
Undocumented in source. Be warned that the author may not have intended to support it.
timeoutApi
DbTimeout timeoutApi()
Undocumented in source. Be warned that the author may not have intended to support it.
transaction
auto transaction()
Undocumented in source. Be warned that the author may not have intended to support it.
trimMutationScore
void trimMutationScore(long keep)

Trim the mutation score history table to only contain the last keep scores.

updateToolVersion
void updateToolVersion(ToolVersion tv)

Update the version of the tool.

vacuum
void vacuum()

Compact the database by running a VACUUM operation

worklistApi
DbWorklist worklistApi()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

make
auto make(string db)

Create a database by either opening an existing or initializing a new.

Variables

db
Miniorm db;
Undocumented in source.

Meta