diff --git a/docs/nix_dev_env.md b/docs/nix_dev_env.md --- a/docs/nix_dev_env.md +++ b/docs/nix_dev_env.md @@ -57,6 +57,7 @@ - [Running mobile app on Android Emulator](./nix_mobile_workflows.md#running-mobile-app-on-android-emulator) - [Running mobile app on physical iOS devices](./nix_mobile_workflows.md#running-mobile-app-on-physical-ios-devices) - [Shared workflows](./nix_shared_workflows.md#shared-workflows) + - [Inspect database with TablePlus](./nix_shared_workflows.md#inspect-database-with-tableplus) - [Codegen](./nix_shared_workflows.md#codegen) - [Codegen for JSI](./nix_shared_workflows.md#codegen-for-jsi) - [Codegen for gRPC](./nix_shared_workflows.md#codegen-for-grpc) diff --git a/docs/nix_shared_workflows.md b/docs/nix_shared_workflows.md --- a/docs/nix_shared_workflows.md +++ b/docs/nix_shared_workflows.md @@ -1,5 +1,19 @@ # Shared workflows +## Inspect database with TablePlus + +Feel free to use any MariaDB administration platform that you’re comfortable with. PHP was deprecated in macOS 12 (Monterey), leading many of us to switch to [TablePlus](https://tableplus.com/). + +After running `nix develop` which will create a MariaDB instance, you need to open a new connection. After opening TablePlus, click the “Create a new connection” text at the bottom of the window that appears. + +- Alternatively, you can navigate through Connection → New... in the menu at the top of the display. + +Choose MariaDB from the database options that appear. You’ll be prompted for: + +- Name (Comm) +- Check "Use socket" +- Enter "/Users//.local/share/MariaDB/mysql.sock", substituting `` for your user. `` can be found by running `echo $USER` in a terminal. + ## Codegen We use a couple of tools that automatically generate code. There is always a source of truth – usually some file(s) with schemas.