planetscale/connection-examples

A collection of PlanetScale connection examples

49

stars

50

commits

Elixir

primary language

May 6, 2026

updated

README

Example client implementations to connect to PlanetScale

Note: These examples target PlanetScale Vitess/MySQL. PlanetScale also offers managed Postgres. For more information, see the PlanetScale Postgres documentation.

This repository contains small example applications that connect to PlanetScale in different languages and frameworks.

These examples ensure a minimal but also secure configuration. Usage of TLS is highly language and framework specific, but these examples show the safe and correct way to connect to PlanetScale with TLS certificate validation enabled to prevent any man-in-the-middle attacks.

Languages / frameworks

Aside from this repository, we also have more extensive guides in their own repositories for:

To learn how to use PlanetScale, please check out our documentation.

Need help?

If you're having trouble getting things to run or you find yourself mingling with obscure error messages, get in touch with our Support team or contact us on Twitter! We're happy to help!

Further reading

License

See LICENSE

Contributors

fooforge

20 commits

hollylawly

17 commits

jgreet

4 commits

SimeonGriggs

3 commits

planetscale/connection-examples

A collection of PlanetScale connection examples

49

stars

50

commits

Elixir

primary language

May 6, 2026

updated

README

Example client implementations to connect to PlanetScale

Note: These examples target PlanetScale Vitess/MySQL. PlanetScale also offers managed Postgres. For more information, see the PlanetScale Postgres documentation.

This repository contains small example applications that connect to PlanetScale in different languages and frameworks.

These examples ensure a minimal but also secure configuration. Usage of TLS is highly language and framework specific, but these examples show the safe and correct way to connect to PlanetScale with TLS certificate validation enabled to prevent any man-in-the-middle attacks.

Languages / frameworks

Aside from this repository, we also have more extensive guides in their own repositories for:

To learn how to use PlanetScale, please check out our documentation.

Need help?

If you're having trouble getting things to run or you find yourself mingling with obscure error messages, get in touch with our Support team or contact us on Twitter! We're happy to help!

Further reading

License

See LICENSE

Contributors

fooforge

20 commits

hollylawly

17 commits

jgreet

4 commits

SimeonGriggs

3 commits

Languages

Elixir

26.6%

C#

15.7%

Rust

10.6%

Go

10.3%

Python

7.8%

Java

5.5%

C

5.3%

PHP

5.2%

Makefile

4.6%

JavaScript

3.2%

Ruby

2.6%

TypeScript

2.6%