wasi-sql
wasi-sql copied to clipboard
`row` is actually a column value.
Just looked at this API, and was confused by the row type, because I expected it to encapsulate a row.
But in fact, it is a single value for a column value.
Would it make sense to rename it to column and make a row which is a list of columns?
Something like:
interface types {
/// one single column item
record column {
field-name: string,
value: data-type,
}
// A single row
type row = list<column>;
// A set of rows
type rows = list<row>;
}