Run SQL script files on a PlanetScale database
Aug 25, 2022Brian Morrison II

Summary
This post demonstrates how to use the PlanetScale CLI to run SQL script files against a database, enabling the creation and population of databases with batch commands. It details the `pscale database create` and `pscale shell` commands, showing how to pipe script files into the shell for execution and how to interact with the database afterwards.