Robert Craigie

Results 424 comments of Robert Craigie

Yes this is still a work in progress, I'll update the WIP to the latest version and then you can try it out!

@danielweil Just updated my WIP, you can try it out in your project by installing from the branch like so: ``` pip install -U git+https://github.com/RobertCraigie/prisma-client-py@wip/transactions ``` However, there are absolutely...

Let me know if you encounter any issues!

I've never encountered that error before but it looks like it has something to do with setuptools. Try running: ``` pip install -U pip pip install -U setuptools ``` And...

No docs yet, basically the same syntax as batching, here's an example: ```py async with client.tx() as transaction: user = await transaction.user.create({'name': 'Robert'}) ```

You can have a look through the tests for more examples: https://github.com/RobertCraigie/prisma-client-py/blob/wip/transactions/tests/test_transactions.py

Are you sure you need to use a custom output in the first place? By default Prisma Client Python will generate itself to the same place it was installed to....

Why are you using custom output? You probably want to either remove custom output or change it to `../client`.

@danielweil Have you added the preview feature flag to your schema? e.g. ```prisma generator client { provider = "prisma-client-py" recursive_type_depth = -1 previewFeatures = ["interactiveTransactions"] } ```

@danielweil I've updated the `wip/transactions` branch to include the changes from the latest release.