querybody

package
v0.158.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package querybody adapts a saved query's explicit body representation to the structured document accepted by DataTug's policy-bound executor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Databases added in v0.148.0

func Databases(query *datatug.QueryDef) ([]tugql.TugQLDatabase, error)

Databases is the root DATABASES block of a text body, in declaration order. A structured body, and any other query type, declares none: a structured document names its databases only through each source's `database` key.

func Extension

func Extension(queryType datatug.QueryType, structured bool) string

Extension follows Core's filename contract; content is never inspected.

func ParseText added in v0.148.0

func ParseText(text string) (string, []tugql.TugQLDatabase, error)

ParseText parses a TugQL text document into the structured document the executor runs and the database aliases its DATABASES block declares. An `alias::path` source lowers to the alias as that source's `database`; binding each alias to a source is the caller's job.

func Structured

func Structured(query *datatug.QueryDef) (string, error)

Structured keeps structured bodies byte-for-byte. Text bodies are parsed by DALgo, never detected from their content. Authoring definitions and parameter declarations require an authorized ResolveTugQL context; this adapter refuses them instead of discarding them or manufacturing schema authority.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL