interface DynamicSchemaData
column_datatypes: string[];
column_headers: string[];
[column: string]: any;
column_datatypes: string[];
column_headers: string[];
[column: string]: any;
Indexable
- [column: string]: any
Column values, keyed
column_1throughcolumn_N
- Defined in src/types.ts:31
Properties
Properties
column_datatypes
column_datatypes: string[]
Data type of each column, in order
- Defined in src/types.ts:35
Decoded payload of an endpoint that returns a dynamic schema, such as execute_sql or aggregate_group_by.
Always present on the responses that declare it: the client decodes the payload on every such response before handing it back, so consumers never need to guard the field.
A statement that returns no result set — DDL such as CREATE TABLE … AS SELECT — still carries the field, but with no columns: read
count_affectedfor those rather thancolumn_headers.The values are column-major, not a list of records:
column_1holds every value for the column named bycolumn_headers[0],column_2forcolumn_headers[1], and so on.