Prisma
https://gyazo.com/d2e6415232f155ac75752483a8cb470b
型がめちゃめちゃ当たる
概念が多すぎて、全貌を把握するのが大変だmrsekut.icon
ノウハウ
歴史とか
prismaのサンプルプロジェクトを作るコマンド
v1とv2の違い
https://gyazo.com/3842c5cdd7ecdadff7883217bd87b70d
v1で必要だったPrisma Serverが不要になった
v2は2つのコンポーネントからなる
Photon
ORM本体
現状はMySQL/PostgreSQL/SQLiteのみに対応
MongoDBへの対応も計画中らしい
Lift
マイグレーションエンジン
Prisma + prisma-fabbrica で TypeScript かつノンフレームワークでありながら、ActiveRecord + FactoryBot 相当の体験が得られる日が近づいてそう ref classではなくただのJSONを返すのがいわゆる一般的なORMとことなる
Developing with Prisma Migrate
Adding Prisma Migrate to an existing project
Team development with Prisma Migrate
Baselining a database
Enable PostgreSQL extensions for native database functions
Include unsupported database features
Customize a migration file
Squashing migrations
Generating down migrations
Migration troubleshooting in development
Seeding your database
Schema prototyping with db push
Patching / hotfixing a database in production
Migration troubleshooting in production
How to use Prisma with multiple database schemas
How to use Prisma's type system
Using Prisma with PlanetScale
Using Prisma with CockroachDB
Using Prisma with MongoDB
Troubleshooting
Creating bug reports
Help articles
Autocompletion in GraphQL resolvers with JavaScript
Modeling and querying many-to-many relations
Querying models based on their relations existence
Best practice for instantiating PrismaClient with Next.js
Using Prisma Client in a Next.js project in a monorepo setup
Solve package error with vercel/pkg
Compare columns of the same table with raw queries
Advanced database tasks
Advanced data validation
Data validation with CHECK constraints (PostgreSQL)