Re:Prisma 2.0 – Type-safe and auto-generated database client
by andrewingram on Tuesday June 09, 2020 @12:07PM
(#23467844)
Is there a plan for a higher-level migration API rather than just generating + executing raw sql strings?
Re:Prisma 2.0 – Type-safe and auto-generated database client
by albertoperdomo on Wednesday June 10, 2020 @08:08AM
(#23476172)
I’m with the Product team at Prisma.
Prisma Migrate (experimental) generates migrations from changes to the Prisma schema. These migrations use an internal DSL that ends up translating to SQL commands for relational DBs.
Can you please elaborate a bit more on what you’d expect as a higher-level migration API?
However, we do see a lot of folks using third-party migrations (like knex.js or indeed Sequelize) and then still get the benefits of Prisma Client [2] through introspection [3] for the time being. For non-critical applications we also already see lots of users who are trying out Migrate and help us improve it through constant feedback! I'd love to hear your thoughts on the current version so that we can make sure to consider your feedback and ideas for Migrate when building it out over the next few months.
[1] https://www.prisma.io/docs/reference/tools-and-interfaces/pr...
[2] https://www.prisma.io/blog/announcing-prisma-2-n0v98rzc8br1/...
[3] https://www.prisma.io/docs/reference/tools-and-interfaces/in...