Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The filesystems page at https://pglite.dev/docs/filesystems says the following:

> "We would recommend using the IndexedDB VFS in the browser at the current time as the OPFS VFS is not supported by Safari."

Is it possible to configure PGLite to use IndexedDB on Safari and OPFS on Chrome & Firefox?



Looks like you configure it with the connection string, so assuming you can just detect whether OPFS is available or swap based on the browser you should be fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: