Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

[Suggestion] Query resultset includes column info once #234

Open
@PJOttCanHome

Description

@PJOttCanHome

Why? A much-less verbose query result.
Since each "cell" returned via "Query" currently includes ColumnName and ColumnType and CellValue it can become bytes-expensive for the transfer. This proposal should make it better, I hope.

New Parameter for Query Function: format=default|colheaders
format=colheaders would return a JSON string like this:

{
   "columns": [{"name":"col0","type":1},{"name":"col1","type":2},{"name":"col2","type":0}]
   "data": [
       [val0,val1,val2],
       [val0,val1,val2],
       [val0,val1,val2]
    ]
}

Each "col#" object could have the info from the "Columns" query as related to the results of this query (or at least ColName,ColType)
This returns a MUCH smaller resultset, as far as bytes transferred back.

I thank you for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions