🌐
Prisma
prisma.io › home › pull › pull › pull
prisma db pull | Introspect Database to Prisma Schema | Prisma Documentation
Sync your Prisma schema from an existing database with prisma db pull. Introspect tables, relations, and generate Prisma models automatically.
🌐
Fig
fig.io › manual › prisma › db › pull
prisma db pull | Fig
prisma db pull · prisma db push · prisma db seed · prisma db execute · prisma version · prisma version · prisma version --json · No description · On this page ·
Discussions

Is Prisma DB Pull reliable?
Hey there, Nikolas from Prisma here! If I continue to build my DB architecture directly in the db, is the Prisma db pull a reliable method to keep my Prisma schema up to date and accurate so I can get the typing's? This is definitely a valid approach! I think a lot of people prefer writing their own migrations (using whatever tool they prefer for that) and then use Prisma's introspection to update their Prisma schema — the main thing to be aware of with that workflow is that you need to run npx prisma generate after each introspection run to make sure the generated Prisma Client types and API get updated. This is also covered in the docs as a typical Prisma workflow: SQL migrations and introspection More on reddit.com
🌐 r/node
3
4
August 14, 2023
Add `prisma db pull` command for introspection
Add prisma db pull command for introspection, with the same behavior Document prisma db pull in CLI help output Should prisma db pull be added in Preview? If not, we should change the help output t... More on github.com
🌐 github.com
0
February 25, 2021
Warning: Think twice before using Prisma in large projects
Hey there, I'm Nikolas from the Prisma team. Thanks a lot for raising these issues, we're always looking to improve so we very much appreciate feedback like this! It sounds like your main issue revolves around the size of the generated index.d.ts file, right? (Since the TS server crashing and the worsened DX are consquences of that)? Thank you as well for already pointing to the open issue for this! I understand that it must be super frustrating to have your editor become slow and autocomplete stop working because of that (and honestly, having an issue open for 4,5 yars sounds equally frustrating to me). I will raise the urgency of this to our Engineering team and hope that we'll get to this soon. We actually recently changed our approach to OSS governance and made it more transparent, exactly because of issues like that one that have been around for so long. In the meantime, could I ask you to add a comment to the issue? Ideally, you can also share your schema (maybe in a GitHub Gist ?) so that our engineers can reproduce it? Regarding JOINs, we released native DB-level joins that are using a mix of LATERAL joins and JSON aggregation about one year ago, so hopefully there shouldn't be any issues around that any more. If you do end up seeing slow queries, please open an issue ! We've invested a lot into performance in the last 1-2 years and are eager to fix any slow query we become aware of. Thanks again for sharing this and please let me know if I can help in any other way! More on reddit.com
🌐 r/nextjs
132
238
January 27, 2025
stuck with prisma and supabase database update
Oh i did this Connect to Supabase via connection pooling with Supavisor. DATABASE_URL="postgres://postgres.[your-supabase-project]:[password]@aws-0-[aws-region].pooler.supabase.com:6543/postgres?pgbouncer=true" Direct connection to the database. Used for migrations. DIRECT_URL="postgres://postgres.[your-supabase-project]:[password]@aws-0-[aws-region].pooler.supabase.com:5432/postgres" datasource db { provider = "postgresql" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") } But still stuck More on reddit.com
🌐 r/nextjs
3
2
July 15, 2024
🌐
Prisma
prisma.io › home › prisma cli reference › prisma cli reference › prisma cli reference
Prisma CLI reference | Prisma Documentation
The db pull command connects to your database and adds Prisma models to your Prisma schema that reflect the current database schema.
🌐
Prisma
prisma.io › home › db › db
prisma db | Database Schema & Lifecycle Commands | Prisma Documentation
The prisma db command group provides tools to manage your database schema and lifecycle during development. ... # Pull schema from database prisma db pull # Push schema to database prisma db push # Seed the database prisma db seed # Execute a SQL script prisma db execute --file ./script.sql
🌐
Prisma
prisma.io › home › what is introspection? › what is introspection? › what is introspection?
What is introspection? (Reference) | Prisma Documentation
Running prisma db pull for relational databases with an existing Prisma Schema merges manual changes made to the schema, with changes made in the database. For MongoDB, Introspection for now is meant to be done only once for the initial data model.
🌐
YouTube
youtube.com › prisma
Using the Prisma DB Pull Command - YouTube
Prisma 2.18 introduced a change to the way databases are introspected.Instead of using the `prisma introspect` command, developers should now use the `prisma...
Published   March 3, 2021
Views   3K
🌐
MCP Servers
mcpservers.org › home › agent skills library › prisma-cli-db-pull
prisma-cli-db-pull | Agent Skills Library
Complete reference for Prisma CLI commands, options, and workflows across setup, migrations, and database operations. Covers 20+ commands organized by priority: setup ( init ), generation ( generate ), development ( dev ), database operations ( db pull/push/seed/execute ), and migrations ( migrate dev/deploy/reset/status/diff/resolve ) Includes Prisma 7.x changes: new prisma.config.ts configuration file, removed flags ( --skip-generate , --skip-seed , --schema , --url ), and explicit...
🌐
Codú
codu.co › home › niall maher › pull schema from database in prisma
Pull Schema From Database in Prisma | by Niall Maher | Codú
February 21, 2024 - With Prisma you can pull the schema from your connected database by running: npx prisma db pull · This overwrites your current schema.prisma with the one it infers from your database.
Find elsewhere
🌐
Pocketcmds
pocketcmds.com › commands › prisma › prisma-db
prisma db push, pull, seed - Schema Management | PocketCmds
Use 'prisma db pull' to introspect an existing database and generate the Prisma schema from it.
🌐
Reddit
reddit.com › r/webdev › how to go from database design to prisma schema and api development .
r/webdev on Reddit: How to go from database design to Prisma Schema and API Development .
January 10, 2026 - This approach lets you design your database visually, tweak it the way you want, deploy it easily, and then pull the schema using prisma db pull to generate a schema.prisma file. From there, you can start writing your API endpoints in no time. you can watch the full tutorial here : https://youtu.be/gnXH2GgmD8A
🌐
Prisma
prisma.io › home › views › views › views › views
How to include views in your Prisma schema | Prisma Documentation
Support for views is currently a Preview feature. You can add a view to your Prisma schema with the view keyword or introspect the views in your database schema with db pull. You cannot yet apply views in your schema to your database with Prisma Migrate and db push unless the changes are added ...
🌐
Reddit
reddit.com › r/node › is prisma db pull reliable?
r/node on Reddit: Is Prisma DB Pull reliable?
August 14, 2023 -

My backend is a fastify/Prisma to a PostgreSQL DB, I am much more comfortable with building my DB tables and constraints (PK, FK, etc) via SQL rather than Prisma's relationships schema.

My question is: If I continue to build my DB architecture directly in the db, is the Prisma db pull a reliable method to keep my Prisma schema up to date and accurate so I can get the typing's?

I just am able to comprehend and explain the relationship much better via SQL rather than via the model references.

🌐
LogRocket
blog.logrocket.com › home › an introduction to prisma 2
An introduction to Prisma 2 - LogRocket Blog
June 4, 2024 - If your database has no tables ... postgresql, mysql, sqlite, sqlserver or mongodb (Preview). 3. Run prisma db pull to turn your database schema into a Prisma schema....
🌐
Prisma
prisma.io › home › getting started with prisma migrate › getting started with prisma migrate › getting started with prisma migrate
Getting started with Prisma Migrate | Prisma Documentation
bunx prisma db pull · Create a baseline migration that creates an initial history of the database before using Prisma migrate. This migrations contains the data that must be maintained, which means the database cannot be reset.
🌐
GitHub
github.com › prisma › prisma › issues › 5836
Add `prisma db pull` command for introspection · Issue #5836 · prisma/prisma
February 25, 2021 - Flag --preview-feature Run preview Prisma commands Usage $ prisma db [command] [options] --preview-feature Options -h, --help Display this help message --schema Custom path to your Prisma schema Commands push Push the state from Prisma schema to the database during prototyping (preview) pull Pull the state from the database to the Prisma schema using introspection seed Seed your database (preview) Examples Using prisma db push $ prisma db push --preview-feature Using prisma db seed $ prisma db seed --preview-feature
Author   prisma
🌐
Prisma
prisma.io › home › push › push › push
prisma db push | Apply Schema to Database (No Migrations) | Prisma Documentation
Conceptual overview of db push and when to use it over Prisma Migrate · Schema prototyping with db push · Edit on GitHub · pull · Pull the state from the database to the Prisma schema using introspection · seed · Seed your database with ...
🌐
Prisma
prisma.io › home › multi-schema › multi-schema › multi-schema › multi-schema
How to use Prisma ORM with multiple database schemas | Prisma Documentation
You can introspect an existing database that has multiple database schemas in the same way that you introspect a database that has a single database schema, using prisma db pull:
🌐
GitHub
github.com › prisma › prisma › discussions › 15775
How can i pull or introspect a defined list tables · prisma/prisma · Discussion #15775
Hi @kaykhan 👋 It's not possible at the moment, npx prisma db pull will introspect all the database tables.
Author   prisma
🌐
DEV Community
dev.to › digitaldrreamer › prisma-db-push-or-pull-stuck-1g4j
Prisma db push or pull stuck? - DEV Community
January 7, 2026 - For example, running npx prisma db push took 9 minutes here and still failed: To resolve this, I needed to switch to a direct connection string using port 5432 instead. I tried changing it on the Supabase dashboard and then saw this: ... # Old Pooled Connection DATABASE_URL="postgresql://...@db.supabase.co:6543/db" DIRECT_URL="postgresql://...@db.supabase.co:6543/db" # New Direct Connection DATABASE_URL="postgresql://...@db.supabase.co:6543/db" DIRECT_URL="postgresql://...@db.supabase.co:5432/db"