Skip to main content

Module vectorize

Module vectorize 

Source
Expand description

#3479: the Vectorize settings of bynk.toml.

A Vectorize capability (capability Docs = Vectorize …) names an index the deploy creates. A team that already has one (made by hand, or shared with another system) names it here instead, per deployment environment, as Hyperdrive’s config_id does:

[deploy.vectorize.Docs]
index = { production = "docs-prod" }

An adopted index is checked against the declaration for drift and is never created, changed or deleted by bynk deploy.

Under bynk dev a Vectorize has no local simulation, so a Worker reaches an index of the developer’s own, named per capability and never the deploy’s:

[dev.vectorize-index]
Docs = "docs-dev"

A capability with no entry is unbound under bynk dev.

Structs§

VectorizeDeploy
One capability’s [deploy.vectorize.<Capability>] entry.

Constants§

DEPLOY_ENTRY_KEYS
The keys of a [deploy.vectorize.<Capability>] entry.

Functions§

deploy_vectorize_from
The [deploy] table’s vectorize entries.
dev_vectorize_index_from
The [dev] table’s vectorize-index entries.
is_index_name
Whether name can be a Vectorize index name: kebab-cased (lowercase letters, digits and hyphens, not starting or ending with one), 1 to 64 bytes. It goes into a command line, so nothing else may reach it.
try_read_vectorize_deploy
try_read_vectorize_deploy_with, reading bynk.toml from disk.
try_read_vectorize_deploy_with
Read bynk.toml’s [deploy.vectorize] entries, honouring overlay. No manifest, or none of the table, is empty.
try_read_vectorize_dev
try_read_vectorize_dev_with, reading bynk.toml from disk.
try_read_vectorize_dev_with
Read bynk.toml’s [dev.vectorize-index] entries, honouring overlay. No manifest, or none of the table, is empty.

Type Aliases§

VectorizeDeployConfig
The [deploy.vectorize] entries, by capability name.
VectorizeDevIndexes
The [dev.vectorize-index] entries, by capability name: the index of the developer’s own that bynk dev binds for each.