1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Remix ✕ Prisma(SQLite) ローカル開発環境のDBにTablePlusで接続してみる

Last updated at Posted at 2024-12-05

概要

RemixでPrisma(SQLite)を使って環境構築をした際のDBにTablePlusでアクセスする方法を簡単にまとめる。

方法

  1. TablePlusにて新規の接続を設定、SQLiteを選択

    CleanShot 2024-10-25 at 23.31.28@2x.png

  2. 下記のように設定

    • Name: 任意の接続名

    • Status color: 任意の色(余談だが筆者はPRD環境→赤、STG環境→黄色、DEV環境→青、local環境→緑と決めている)

    • Env: local

    • Database path: Remixのプロジェクトルートディレクトリ/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/識別文字列.sqlite

      CleanShot 2024-10-25 at 23.39.10@2x.png

  3. 「Save」ボタンを押下して設定を保存

  4. 作成した接続設定をダブルクリックしてDBに接続できるかを確認

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?