PlanetScale
PlanetScale manages logins in its dashboard, so you create a read-only one there. Rowsend’s setup SQL only creates a view. In Rowsend, PlanetScale appears twice in the connect dialog, once under Postgres and once under MySQL. Pick the one your database uses.
Postgres
Section titled “Postgres”- In PlanetScale, open your database, click Connect and pick the branch.
- Create a role. Untick
pg_write_all_dataso onlypg_read_all_datais left. - Copy the connection URI.
- In PlanetScale, open your database, click Connect and pick the branch.
- Create a password. Keep Primary and set the role to Read-only.
- Under Connect with, choose Prisma and copy the
DATABASE_URLvalue.
Connect
Section titled “Connect”- In Rowsend, open Contacts, click Connect a database, choose PlanetScale under your engine, paste the connection string and click Continue.
- Choose what Rowsend reads: a table, its email and last-changed columns, and any extra columns. The select must return
id,emailandupdated_at. - Click Copy SQL and run it in PlanetScale’s console. On Postgres it creates a
rowsendschema with acontactsview and lets your role read it. On MySQL it creates arowsend_contactsview in your database. It creates no login. - Click Test and connect.
Before connecting, Rowsend checks that the login can’t write and refuses one that can. On MySQL, PlanetScale enforces password roles outside MySQL’s grants, so Rowsend tries an update that matches no rows and expects PlanetScale to deny it. Nothing changes either way.
Rowsend saves this login on your computer, encrypted with your system keychain.
Can we count your visit?
Google Analytics shows us which pages help. It only sets cookies if you allow it. Privacy policy