PlanetScale

Declarative MySQL schemas with Atlas CLI

Sep 16, 2022Brian Morrison II
Declarative MySQL schemas with Atlas CLI
SummaryAI, from the source post

This post introduces Atlas CLI as a tool for managing MySQL database schemas declaratively. It demonstrates how to set up a PlanetScale database, generate an HCL schema definition file from an existing database using `atlas schema inspect`, modify the schema definition, and apply changes to the database using `atlas schema apply`. It highlights the benefits of treating database schemas as code for versioning and automation within CI/CD pipelines.

More from the Vitess-based MySQL replacement trail