Add initial reduction node implementation, start adding dynamic node
All checks were successful
test / test (push) Successful in 15m58s

This commit is contained in:
2025-01-09 13:55:01 +10:30
parent 43db0dc308
commit 65d1e9fec4
6 changed files with 1039 additions and 60 deletions

35
wit/dynamic_node.wit Normal file
View File

@@ -0,0 +1,35 @@
package vato007:ingey;
world dynamic {
resource row {
get: func(name: string) -> string;
}
resource reader {
columns: func() -> list<string>;
next: func() -> row;
has-next: func() -> bool;
// Get a row by values in one or more columns
query: func(values: list<tuple<string, string>>) -> row;
}
resource read-map {
get: func(key: string) -> string;
}
resource write-map {
add: func(name: string, value: string);
}
resource readers {
get-reader: func(name: string) -> option<reader>;
}
resource writer {
write: func(row: write-map);
}
export evaluate: func(readers: readers, properties: read-map, writer: writer);
}