{sandboxEnabled &&
}
{selectedOption === 'authenticated' && }
Query
{
if (!isInferring && !isLoading) onRunQuery()
},
},
}}
/>
{format === 'lib' && (
)}
{blockedReason?.type === 'multiple-statements' ? (
) : blockedReason?.type === 'unsupported-operation' ? (
) : parseQueryError ? (
) : parseClientCodeError ? (
) : executeSqlError && !isErrorDueToRLS ? (
getDebugPrompt({ includeSql: true })}
onOpenAssistant={onDebugWithAssistant}
/>,
]}
/>
) : isLoading ? (
) : results === null && !isErrorDueToRLS ? (
) : !!parseQueryResults ? (
) : null}