Structure of the SQL query result returned by the SDK.


  • default


columnNames: string[]

Ordered database column names for the response

context?: object

MindsDB context for database where the query is executed.

error_message?: string

Error message if the SQL query failed.

rows: Record<string, any>[]

Data rows returned from the SQL query. Each row is a dictionary of column name to column value.

type: "ok" | "error" | "table"

Type of the response. 'table' is for successful queries that return data. 'ok' is for successful queries that don't return anything. 'error' is for any queries that fail to execute.

Generated using TypeDoc