Getting Started
Make sure to first set up your PlanetScale developer environment. Once you’ve installed thepscale CLI, you can interact with PlanetScale and manage your databases straight from the command line.
The query-patterns command
List, inspect, delete, and download query pattern reports for a database branch. The download
command creates a Query Insights report, waits for it to finish generating, and writes the CSV file
locally.
Query pattern reports require Query Insights to be enabled for the database.
Usage:

