Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config describes a connection to PlanetScale, the managed Vitess platform. PlanetScale speaks the MySQL wire protocol, so the direct database connection reuses the MySQL driver; the ingestr URI uses the dedicated "planetscale" scheme, which ingestr routes through its hosted psdbconnect API (TLS is enabled automatically, so no SSL configuration is required).
func (Config) GetIngestrURI ¶
GetIngestrURI builds the ingestr source/destination URI using the dedicated "planetscale" scheme. ingestr enables TLS automatically for this scheme, and the ingestr operator derives the CDC scheme (planetscale+cdc://) by appending "+cdc".
func (Config) ToDBConnectionURI ¶
ToDBConnectionURI builds the go-sql-driver/mysql DSN used to open a direct connection (e.g. for `bruin connections test`). PlanetScale requires encrypted connections, so TLS is always enabled; go-sql-driver's tls=true verifies the server certificate against the system root CAs, which is valid for the public *.psdb.cloud endpoints.