Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 438 Bytes

File metadata and controls

27 lines (18 loc) · 438 Bytes

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