pglite icon indicating copy to clipboard operation
pglite copied to clipboard

feat: initial support for solidjs.

Open MAST1999 opened this issue 5 months ago • 1 comments

I've added the hooks for solidjs integration and all tests are passing too.

I can start the work on docs if the interface looks good.

MAST1999 avatar Jul 26 '25 01:07 MAST1999

OK, I thought of this API for queries (inspired by TanStack DB and my own little wrapper that I wrote some time ago) which will remove the need for a separate params option. And the last part could be an object with other configuration, for incremental it could be the key and for normal query it could be pagination (limit and offset).

useLiveQuery((sql) => sql`select * from test where name ilike %${someName}%`, ['id'])
useLiveQuery((sql) => sql`select * from test where name ilike %${someName}%`, {limit: 5, offset: 10})

What do you guys think?

MAST1999 avatar Jul 26 '25 05:07 MAST1999