Skip to content

YannickAaron/PythonPrisma_DatabaseMigration

Repository files navigation

Prisma x Python

Testing the functionality of Prisma with Python.

  1. fill out the .env file with your credentials

  2. start the docker container

docker-compose up -d
  1. Generating Prisma Client Python
poetry run prisma db push

To change the schema use the migration as follows:

# apply migrations
poetry run prisma migrate dev --name "add comment model"
# generate
poetry run prisma generate

About

Testing typesafe database migration with prisma using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors