MySQL, PostgreSQL #14
-
Do you plan to add support for mysql or postgresql? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 39 replies
-
No, at the moment only SQLite (in WAL mode) is supported and I don't plan adding other databases. Please also note that PocketBase is designed to be self-contained and run entirely on a single server so horizontal scaling is not supported (there is already Supabase or Nhost if you need that). |
Beta Was this translation helpful? Give feedback.
-
Started PostgreSQL at dz0ny@3c672fc. Server starts, migrations run, needs couple of fixes for collection for queries and dynamic table creation. DB:
Server
|
Beta Was this translation helpful? Give feedback.
-
One is a preference of PostgreSQL, the second one is I can then run it at any Paas (Heroku, Fly.io, Render...), thes mostly have ephemeral filesystems. |
Beta Was this translation helpful? Give feedback.
-
The potential utility for me of Pocketbase with Postgres is for creating an internal-facing administrative app to manage data that is end-user facing. Of course, there are several other No-Code tools for this purpose, but they almost all lack in the ability to insert validation logic in front of the DB other than some auth restrictions- validation must be done in check constraints. Directus does have this ability, but it is TypeScript-based- PocketBase would uniquely allow Golang developers to quickly write CRUD apps against PG with validation logic. |
Beta Was this translation helpful? Give feedback.
-
Another cool reason for postgresql is that you could use it with GraphJin ( https://github.com/dosco/graphjin ) . It could be synergistic in that:
win win perhaps ? GraphJin is also easy to embed in another program , just like pocketbase. |
Beta Was this translation helpful? Give feedback.
-
Count me in as another who believes Postgres should be an option if only because it will enable users to host on platforms without persistent storage, or on platforms where configuring persistent storage is difficult or non-obvious. |
Beta Was this translation helpful? Give feedback.
-
I'll also toss my hat in for postgres support. Getting rid of the need for persistent storage would allow this to be deployed as a stateless application, enabling HA deployments |
Beta Was this translation helpful? Give feedback.
-
https://github.com/go-jet/jet might help. It can work with our without code gen. Its light too and supports all the normal dbs. |
Beta Was this translation helpful? Give feedback.
-
Also quite interesting in having this as I would love to connect neon.tech (serverless postgres) to pocketbase (: |
Beta Was this translation helpful? Give feedback.
-
I was looking, but is there a list of issues that makes it difficult to support Postgres (or other external database)? Or, is the issue more of cost of maintenance? Or supporting some specific features of the pocketbase? Note: I do understand the stance of not wanting to support, I'm just wondering what are the technical hurdles. |
Beta Was this translation helpful? Give feedback.
No, at the moment only SQLite (in WAL mode) is supported and I don't plan adding other databases.
For SQLite replication Litestream is a great companion app .
Please also note that PocketBase is designed to be self-contained and run entirely on a single server so horizontal scaling is not supported (there is already Supabase or Nhost if you need that).