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.
db
Miniorm db()
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.
fileApi
DbFile fileApi()
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(MutationStatusId 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.

markMutantApi
DbMarkMutant markMutantApi()
Undocumented in source. Be warned that the author may not have intended to support it.
memOverloadApi
DbMemOverload memOverloadApi()
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.
miscApi
DbMisc miscApi()
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.
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.

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.

Meta