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.
Source
Something that is not a table but can be read as tables: a file, a folder, a document, the program's own objects. A source declares its tables, then loads them into a catalog.
Operations
GetError # virtual
Gets the reason the last load failed
method : public : virtual : GetError() ~ StringReturn
| Type | Description |
|---|---|
| String | error, Nil if none |
GetTables # virtual
Gets the tables the source provides
method : public : virtual : GetTables() ~ TableSpec[]Return
| Type | Description |
|---|---|
| TableSpec | table shapes |
Load # virtual
Loads the source's tables into a catalog
method : public : virtual : Load(catalog:Catalog, hint:ScanHint) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| catalog | Catalog | catalog to add the tables to |
| hint | ScanHint | what the query needs, Nil for everything |
Return
| Type | Description |
|---|---|
| Bool | true if loaded, false on error (see GetError) |