Prisma
https://gyazo.com/d2e6415232f155ac75752483a8cb470b
TypeScriptのORM
型がめちゃめちゃ当たる
website
github
tutroial
examples
これも→https://github.com/diego3g/node-prisma-twitter
https://www.prisma.io/blog/announcing-prisma-2-n0v98rzc8br1
Prisma Client
Prisma Migrate
Prisma Studio
#WIP
概念が多すぎて、全貌を把握するのが大変だmrsekut.icon
https://speakerdeck.com/tockn/prisma-ormwo2nian-yun-yong-sitepei-tutanouhauwogong-you-suru
ノウハウ
https://zenn.dev/cloudbase/articles/65b9f6e4f9ae05
歴史とか
https://www.prisma.io/blog/try-prisma-announcment-Kv6bwRcdjd
λ npx try-prisma
prismaのサンプルプロジェクトを作るコマンド
Prisma v1
v1とv2の違い
https://gyazo.com/3842c5cdd7ecdadff7883217bd87b70d
v1で必要だったPrisma Serverが不要になった
「API Server」はGraphQL APIである必要はない
RESTでもgRPCやThriftでもいい
v2は2つのコンポーネントからなる
Photon
ORM本体
現状はMySQL/PostgreSQL/SQLiteのみに対応
MongoDBへの対応も計画中らしい
https://github.com/prisma/prisma/releases/tag/2.0.0-preview020
Prisma Clientに改名したっぽい
Lift
マイグレーションエンジン
なにそれ #??
https://www.prisma.io/docs/concepts/components
Prisma CLI
Prisma Introspection
Prisma Data Platform
https://www.prisma.io/docs/concepts/components/prisma-data-platform
Prisma Engines
Prisma CLI
https://www.prisma.io/docs/concepts/components/prisma-cli
https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/is-prisma-an-orm
PrismaはORMか?
classではなくただのJSONを返すのがいわゆる一般的なORMとことなる
https://zenn.dev/kanasugi/articles/a082bd39c5bdf2
https://qiita.com/Quramy/items/5c5fc3bc69f2f9a91732
https://tech.smartcamp.co.jp/entry/try-prisma-to-product-filter?utm_source=feed
/fsubal/Prisma を綺麗に使いたければ MVC という発想を忘れるのが良いのでは
https://qiita.com/joe-re/items/6e09e741ed2e0c6637b0
https://www.prisma.io/docs/guides/database
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)