Skip to content

@sqlrooms/duckdb / getSqlErrorWithPointer

Variable: getSqlErrorWithPointer()

const getSqlErrorWithPointer: (query, position) => object

Function given a query and position finds the line and column of the console.error();

Parameters

ParameterTypeDescription
querystringThe query to parse
positionnumberThe position of the error

Returns

object

The line and column of the error

NameType
linenumber
columnnumber
lineTextstring
pointerLinestring
formattedstring