connection-examples
connection-examples copied to clipboard
A collection of PlanetScale connection examples
Example client implementations to connect to PlanetScale
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
- MySQL command line client
- C
- C#
- Elixir
- Go
- Java
- Node.js
- Prisma
- PHP
- Python
- Django
- Ruby
- Rails
- Rust
- mysql
- mysql-async
- sqlx
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