pglite icon indicating copy to clipboard operation
pglite copied to clipboard

Question: How to access it from a GUI?

Open BrunoQuaresma opened this issue 1 year ago • 2 comments

Hi folks, I'm playing around with the project and I'm using local files to store the data. Is there any GUI that would support pqlite? I would like to use it to debug things. Thank you!

BrunoQuaresma avatar Mar 29 '24 13:03 BrunoQuaresma

We've not built one yet, but it's on the list!

best way to debug for now it to make the db global so you can access it from the terminal, then just do queries there.

samwillis avatar Mar 29 '24 13:03 samwillis

It's possible to use something like drizzle studio?

jlucaso1 avatar Mar 29 '24 23:03 jlucaso1

but i want to use it on browser, is there a GUI tool to view database?

jueinin avatar Jul 11 '24 03:07 jueinin

in browser env, may be you can try this project, https://github.com/datawan-labs/pg

just import src/main.tsx and provideo a container DOM node.

ensure import it within the same domain & port, otherwise, it can't read the pg indexdb files

jueinin avatar Jul 12 '24 14:07 jueinin

@jlucaso1 you can use drizzle studio https://github.com/drizzle-team/drizzle-orm/issues/2823

Jonovono avatar Oct 25 '24 23:10 Jonovono

Hey, I built https://github.com/f0rr0/pg-browser-proxy which lets you use any tool - drizzle studio, prisma studio, pgadmin etc. to interact with browser based databases. Check it out!

f0rr0 avatar Nov 17 '24 13:11 f0rr0

@f0rr0 super cool!

thruflo avatar Nov 17 '24 17:11 thruflo