From a0c2a29a9636e8e78e53bbfad4d0f5afc36c9d1a Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 16 Nov 2025 10:34:44 -0600 Subject: [PATCH] Add See What Databases You Have Access To as a Planetscale TIL --- README.md | 3 ++- .../see-what-databases-you-have-access-to.md | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 planetscale/see-what-databases-you-have-access-to.md diff --git a/README.md b/README.md index b002470..984aad4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1690 TILs and counting..._ +_1691 TILs and counting..._ See some of the other learning resources I work on: @@ -808,6 +808,7 @@ If you've learned something here, support my efforts writing daily TILs by ### Planetscale +- [See What Databases You Have Access To](planetscale/see-what-databases-you-have-access-to.md) - [Seed Production Data Into Another Branch](planetscale/seed-production-data-into-another-branch.md) ### pnpm diff --git a/planetscale/see-what-databases-you-have-access-to.md b/planetscale/see-what-databases-you-have-access-to.md new file mode 100644 index 0000000..9035991 --- /dev/null +++ b/planetscale/see-what-databases-you-have-access-to.md @@ -0,0 +1,23 @@ +# See What Databases You Have Access To + +Assuming you have the `pscale` CLI installed and you've authenticated with it, +you can run the following to view available databases. + +```bash +$ pscale database list + NAME KIND CREATED AT UPDATED AT + ----------- ------- ------------- ------------- + bookshelf mysql 3 years ago 3 years ago +``` + +I'm not very active on my personal account. Planetscale is a multi-tenant SaaS +though. I can switch from my personal `org` to another team I have access to. + +```bash +$ pscale org switch another-team +``` + +And then from there I can run `pscale database list` again to see what databases +I have access to from this other organization. + +See `pscale database help` and `pscale org help` for more details.