Skip to content

raw_source

relationalai.semantics.std.common
raw_source(lang: StringValue, source: str) -> Expression

Attach raw source code to the transaction when the backend understands this language.

  • lang

    (StringValue) - The language identifier for the source code (e.g. "sql", "lqp", or "rel").
  • source

    (str) - The source code to attach.
  • Expression - An Expression representing the raw source attachment.

Attach raw Rel source code:

>>> common.raw_source("rel", "def my_rule = 42")