Skip to main content

class  pixeltable.ConfigVar

A reference to a database variable or secret, declared at module scope. A declaration names the variable; the target it is applied to supplies the value. Declare a variable and apply it to a column:
MEDIA_DEST = pxt.ConfigVar(‘media_dest’, pxt.URI) … … … class Videos(TableModel, name=‘videos’): … clip = pxt.Column(value=…, destination=MEDIA_DEST)
Code that runs on the target reads the bound value with value().

method  value()

Signature
The bound value, converted to the declared type. Raises if the target has no binding for it. Examples: Read a secret from a udf, which runs on the target:
Last modified on August 31, 2026