Skip to content

Expose useLiveQuery SQL error #594

Description

@edishu

I'm building a SQL editor using pglite and react-pglite. While a user is editing query there can be syntax errors in the query. The useLiveQuery hook in that case throws an error like:

Uncaught (in promise) error: syntax error at or near "table"
sql-console-error

But there is no way to obtain this SQL error from useLiveQuery. If I have access to the error I can expose it in the UI so that user can correct their query.

Metadata

Metadata

Assignees

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