Skip to main content

Crate pelicode_db

Crate pelicode_db 

Source
Expand description

SQLite storage of function features (specification §5).

Structs§

CleanSummary
What Database::clean removed, or would remove.
CommonHash
A hash shared by several packages, with one function that has it.
Database
A pelicode database: an SQLite file holding the features of functions and where they were found, but no source code.
FunctionInfo
A stored function, without its occurrences.
FunctionRow
One occurrence of a stored function, for export.
HashStatsInfo
State of the statistics.
IndexSummary
Result of Database::index.
Occurrence
Where a stored function appears: a file of a package version.
PackageInfo
Where indexed source files come from.
SnapshotOptions
What goes into a snapshot.
SnapshotSummary
What Database::snapshot wrote.
Stats
Number of rows of the main tables.
StoredFingerprint
A stored fingerprint with the source lines it covers.

Enums§

Error
Errors of the database.

Constants§

OLDEST_SCHEMA_VERSION
Oldest version of the table layout that is upgraded on open; older ones are rejected.
SCHEMA_VERSION
Version of the table layout; databases with another version are rejected.

Type Aliases§

Result
Result of the database operations.