wasi-sql icon indicating copy to clipboard operation
wasi-sql copied to clipboard

`row` is actually a column value.

Open stevenj opened this issue 6 months ago • 0 comments

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>;
}

stevenj avatar Jul 04 '25 05:07 stevenj