TL;DR PlanetScale is a MySQL-compatible serverless database platform. Since its database service is a bit different from the actual MySQL, there are some limitations that you can't ignore and must resolve to be able to work with their services. This ...

Markdown supported · ⌘↵ to post
Great idea Sadra! Thank you for this one, I've tested your engine, and it works perfectly fine.
One quick note here: Planet scale uses os module to read .env file data, I recommend using python-decouple for that (os module fails at importing the settings).
Hi Sadra Yahyapour,
Thanks for writing this guide how to get started with PlanetScale and Python!
One quick comment on this part:
PlanetScale supports the
utf8,utf8mb4andutf8mb3character sets. Though, per the MySQL documentationutf8mb3is deprecated andutf8mb4should be used instead. The alias (or reference)utf8still points toutf8mb3, but it's expected to change toutf8mb4with a future release.