How accurate will be the db introspection ? should...
# orm-help
i
How accurate will be the db introspection ? should we trust it? or should we trust it in most cases but still needed a user correction when pulled?
j
It should be 100% accurate regarding the features that Prisma (schema) supports.
👍 1
Optimally after you use the resulting schema to then run
npx prisma db push
on an empty database, the resulting SQL schema will be 100% identical.
👍 1
Unfortuantely Prisma does not support all database features yet (and probably never will), so if you use one of these that might be missing as it is not represented in the schema.
👍 1
If other things do not match, that is a bug and worth reporting.
👍 1
i
got it!
I will just try to migrate my existing projects from type orm to prisma that's why i have ask this because of the existing schema
👍 1
another issue im trying to solve is the discriminator/single table inheritance that being handled well in a code first approach like mikro orm i think Ill stick first with class entity of it then just pull the resulting schema