Skip to main content

Module cache

Module cache 

Source
Expand description

SQLite-backed compiler cache shared by the writer and the reader.

The cache is a single SQLite file per profile namespace. BuildArtifact is the read/write handle used during compilation; ProjectCache is the read-only handle used by downstream consumers (the LSP, in particular). Both agree on the file location, schema version, and error vocabulary defined here.

Modulesยง

build_artifact ๐Ÿ”’
Persistence layer for the incremental compiler.
project_cache ๐Ÿ”’
Read-only interface to cached project and typecheck artifacts.
schema ๐Ÿ”’
Schema for the compiler cache database.

Enumsยง

CacheError

Constantsยง

DB_FILE ๐Ÿ”’

Functionsยง

db_path ๐Ÿ”’
Compute the path to the compiler cache database for a given project and profile.