v2026.11.2
All Bundles
Bundle

In-memory query engine over typed columns. Tables are filled row by row or loaded from sources (CSV files, folders, the program's own objects) and queried with SQL-like statements; aggregates, Describe() and Finder (file search) are included. Compile with -lib query.

XmlSource

An XML document as tables: each element named 'row_element' is a row. Its attributes are columns named '

Implements: Source

Operations

FromText # function

Makes a source over XML text already in memory

function : FromText(name:String, text:String, row_element:String) ~ XmlSource

Parameters

NameTypeDescription
nameStringtable name
textStringXML text
row_elementStringname of the elements that are rows

Return

TypeDescription
XmlSourcesource

GetChildTables #

Gets the child tables the last Read made, depth first in the order their elements were first seen

method : public : GetChildTables() ~ Vector<Table>

Return

TypeDescription
Vector<Table>child tables, empty if there are none

GetError #

Gets the reason the last read failed

method : public : GetError() ~ String

Return

TypeDescription
Stringerror, Nil if none

GetTables #

Gets the tables the document provides, the main table first; they are known only after reading it

method : public : GetTables() ~ TableSpec[]

Return

TypeDescription
TableSpectable shapes

Load #

Loads the document's tables into a catalog

method : public : Load(catalog:Catalog, hint:ScanHint) ~ Bool

Parameters

NameTypeDescription
catalogCatalogcatalog
hintScanHintcolumns and rows of the main table needed, Nil for everything

Return

TypeDescription
Booltrue if loaded

New # constructor

Constructor; the table is named after the file

New(path:String, row_element:String)

Parameters

NameTypeDescription
pathStringXML file
row_elementStringname of the elements that are rows

New # constructor

Constructor

New(path:String, name:String, row_element:String)

Parameters

NameTypeDescription
pathStringXML file
nameStringtable name
row_elementStringname of the elements that are rows

Read #

Reads the document's main table; GetChildTables then has the others

method : public : Read() ~ Table

Return

TypeDescription
Tabletable, Nil on error (see GetError)

Read #

Reads the document's main table; GetChildTables then has the others

method : public : Read(hint:ScanHint) ~ Table

Parameters

NameTypeDescription
hintScanHintcolumns and rows of the main table needed, Nil for everything

Return

TypeDescription
Tabletable, Nil on error (see GetError)