Re:Show HN: Prisma Python – A fully typed ORM for Python
by joshribakoff on Monday February 21, 2022 @01:56PM
(#30419321)
I use Prisma and it’s far from perfect but what I love about it is you can introspect a legacy database and generate a Prisma schema, and use the database as the source of truth. You’re not tied to a 1:1 relationship between classes and tables, and the correctness of the types do not depend on tediously annotating code correctly. Excited to see more languages supported!
[ Parent
| on HN ]
Re:Show HN: Prisma Python – A fully typed ORM for Python
by post-it on Monday February 21, 2022 @06:27PM
(#30422118)
Are there any ORMs that do that currently? That sounds awesome
Re:Show HN: Prisma Python – A fully typed ORM for Python
by probablyrobert on Monday February 21, 2022 @07:16PM
(#30422535)
If you're wanting to automatically generate the Prisma Schema then all you have to do is create the schema file, define the datasource connection and then run `prisma db pull`
Re:Show HN: Prisma Python – A fully typed ORM for Python
by ParetoOptimal on Monday February 21, 2022 @07:09PM
(#30422480)
See F# and it's type providers.
Re:Show HN: Prisma Python – A fully typed ORM for Python
by camdenreslink on Monday February 21, 2022 @09:53PM
(#30423530)
Entity Framework allows you to do that (if you are coding for .NET). It is the best ORM I've encountered.
The option to do it is called "Code First from Database".
Re:Show HN: Prisma Python – A fully typed ORM for Python
by dpacmittal on Tuesday February 22, 2022 @03:03AM
(#30425187)
MikroORM can also auto generate schema from an existing database