mysqlRelation(endpoint, credential, data) with the MySQL DNS
endpoint from a PlanetScale Vitess branch’s read-only password.
Use the database name and username listed with that password. Set
"dialect": "planetscale" in the connection JSON. Bind the receiver and the mount under the same
data label.
VTGate accepts MySQL TLS and prepared statements, but brokers operations
for a branch instead of identifying it as one MySQL server. Select an
unsharded branch and a local InnoDB base table with one immutable signed
BIGINT primary key. The profile selects the database explicitly and
reads the visible primary key and table metadata before and after each
page. A page is one ordered SELECT. It does not use the MySQL server UUID
or claim a repeatable-read transaction through the router.
Specify one to sixteen projection columns. The receiver returns
their SQL text representations or JSON null, with up to 32 rows,
24 KiB per row and 48 KiB per encoded page. Bijection retains an
exclusive numeric key scoped to the installed endpoint, branch login,
table metadata and incarnation. An empty pass or a complete short
page restarts the sweep at the next poll. Missing keys stay published.
Use a fresh incarnation and review the source reset after branch or table
replacement, including online schema swaps that can retain identical
metadata. A change in branch username also requires a reset. Sharded
snapshots, VStream, binlog and DML are outside this profile.
PlanetScale connection strings ·
Vitess MySQL compatibility