Skip to main content

Module vectors

Module vectors 

Source
Expand description

import-vectors: the spec’s vectors’ cells into a store (see deploy/README.md).

What it puts, and nothing else: the key documents of the receipt vectors (each retrieved document) and of the formula vectors’ hosts (the test keys of SPEC 11), merged per host; every descriptor the vectors give (a receipt vector’s, every formula and excel vector’s function, valid or not: a pinned request evaluates any of them); every receipt (each verified by put_receipt); the manifests; the names the valid vectors bind (a name bound to several functions keeps the first, reported), and the names only invalid vectors bind (their first function); the stored cells’ versions.

Functions§

excel_descriptor
An excel vector’s function (SPEC 11): {"code": {"body": <body>, "lang": "formula"}, "inputs": <the derived inputs>, "signature": <signature>}, the inputs the names its body reads.
import
Imports the spec’s vectors in dir into store, binding their names at now (see the module documentation). The mesh’s own namespaces are not checked: see import_in.
import_in
As import, for a mesh whose own namespaces are host and owned (import-vectors): the whole import is refused before any write when a name it would bind is under one of them (PublishErrorKind::OwnedVectorName). Other names are exempt from rule A.