You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for aiohttp and requests has been removed in favour of httpx, as httpx supports both asynchronous and synchronous clients within the same library there is no reason to use aiohttp or requests anymore.
This means that the way you install Prisma Client Python will change. You now no longer need to specify an extra, for example
pip install prisma-client[aiohttp]
turns into
pip install prisma-client
Config changes
The http option has been replaced with the interface option. The new interface option is used to control whether or not the generated client is asynchronous.
Migrating
If you used aiohttp before you should use the following:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
🚨 This release contains breaking changes 🚨
Removal of aiohttp and requests
Support for
aiohttp
andrequests
has been removed in favour of httpx, as httpx supports bothasynchronous
andsynchronous
clients within the same library there is no reason to useaiohttp
orrequests
anymore.This means that the way you install Prisma Client Python will change. You now no longer need to specify an extra, for example
turns into
Config changes
The
http
option has been replaced with theinterface
option. The newinterface
option is used to control whether or not the generated client is asynchronous.Migrating
If you used
aiohttp
before you should use the following:If you used
requests
before you should use the following:Changes
Support for Json types
You can now make use of Prisma's
Json
type.You can create and search for
Json
values like so:Other changes
BigInt
types.This discussion was created from the release v0.0.4.
Beta Was this translation helpful? Give feedback.
All reactions