本文へスキップ
記事初級

Prisma ORM で D1 にクエリする

Prisma ORM で D1 データベースにクエリする Cloudflare Worker を一から構築してデプロイします。テーブル作成からローカル実行まで扱います。

最終更新
2026年10月12日
元の記事を読む

この紹介文は現在英語版のみです。

Prisma ORM brings an intuitive data model, migrations, type safety and auto-completion to D1. This tutorial builds a Worker that queries D1 through Prisma from scratch.

What you’ll learn

  • Initialize Prisma ORM in a Worker
  • Create a D1 database and a table
  • Query the database from the Worker
  • Run locally and deploy

Cloudflare products used

D1, Workers.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

さらに学ぶ