Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pglite: investigate using it for unit testing, instead of (or in addition to) our current full postgresql "ephemeral" database #8048

Open
williamstein opened this issue Dec 3, 2024 · 2 comments

Comments

@williamstein
Copy link
Contributor

See https://github.com/electric-sql/pglite

This could also be useful for unit testing, instead of running a full Postgresql server. Maybe. There are of course major advantages to just running real postgresql for unit testing, since it better reflects production.

Pglite could possibly be of interest as well for an even simpler and more lightweight version of cocalc. E.g., imagine cocalc-docker but without having to run a separate postgresql at all. This would be significantly easier to run outside of docker as an electron app (say).

@williamstein
Copy link
Contributor Author

NOTE: this is a relatively non-actionable vague idea.

@williamstein
Copy link
Contributor Author

Definitely do NOT use this (solely) for unit testing, because e.g., we need to be able to target a specific version of postgresql with github actions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant