Prisma

Latest version: v0.15.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 39 of 44

0.8.2

Prisma updates

This release bumps the internal Prisma version from v4.10.1 to v4.11.0, although there aren't any major changes here for Prisma Client Python users.

The full release notes can be found [here](https://github.com/prisma/prisma/releases/tag/4.11.0).

Bug fIxes

- [Fixed crash when using default values for arrays](https://github.com/RobertCraigie/prisma-client-py/issues/711)
- [Fixed incorrect CLI binary caching detection mechanism](https://github.com/RobertCraigie/prisma-client-py/issues/705)

0.8.1

Support for selecting fields

This release adds support for selecting fields at the database level!

This currently only works for queries using [model based access](https://prisma-client-py.readthedocs.io/en/stable/reference/model-actions/) either by defining your own model classes or generating them using partial types.

Quick example:

py
from prisma.bases import BaseUser

class UserWithName(BaseUser):
name: str

this query will only select the `name` field at the database level!
user = await UserWithName.prisma().find_first(
where={
'country': 'Scotland',
},
)
print(user.name)


For a more detailed guide see the [docs](https://prisma-client-py.readthedocs.io/en/latest/stable/selecting-fields/).

Support for distinct filters

You can now pass in a `distinct` filter to `find_first()` and `find_many()` queries.

For example, the following query will find all `Profile` records that have a distinct, or unique, `city` field.

py
profiles = await db.profiles.find_many(
distinct=['city'],
)
[
{ city: 'Paris' },
{ city: 'Lyon' },
]


You can also filter by distinct combinations, for example the following query will return all records that have a distinct `city` *and* `country` combination.

py
profiles = await db.profiles.find_many(
distinct=['city', 'country'],
)
[
{ city: 'Paris', country: 'France' },
{ city: 'Paris', country: 'Denmark' },
{ city: 'Lyon', country: 'France' },
]


CLI support for specifying the generator to use

Thanks to yukukotani's [great work](https://github.com/prisma/prisma/pull/16452) on the CLI you can now ergonomically share the same schema between multiple languages, for example with the following schema:

prisma
datasource db {
provider = "sqlite"
url = "file:./dev.db"
}

generator node {
provider = "prisma-client-js"
}

generator python {
provider = "prisma-client-py"
}

model User {
id Int id
name String
}


You can now skip the generation of the Node client with the `--generator` argument:


prisma generate --generator=python


See the `generate` [documentation](https://www.prisma.io/docs/reference/api-reference/command-reference#generate) for more details.

Bug fixes

- [Ensure the SIGINT signal is unblocked before forking the query engine process](https://github.com/RobertCraigie/prisma-client-py/pull/678), thanks to ezorita!

Prisma updates

This release bumps the internal Prisma version from `v4.8.0` to `v4.10.1`

- [Multi-schema support for SQL Server (Preview)](https://www.prisma.io/docs/guides/database/multi-schema)
- [Improved CLI support for connection proxies](https://www.prisma.io/docs/data-platform/data-proxy/prisma-cli-with-data-proxy)
- [Improved introspection support for unsupported features](https://github.com/prisma/prisma/releases/tag/4.10.0#:~:text=Improved%20introspection%20for%20unsupported%20database%20functionality%20%26%20partitioned%20tables)
- [Smaller engine size in the CLI](https://github.com/prisma/prisma/releases/tag/4.10.0#:~:text=Smaller%20engine%20size%20used%20in%20Prisma%20CLI)

For the full release notes, see the [v4.9.0 release notes](https://github.com/prisma/prisma/releases/tag/4.9.0) and the [v4.10.0 release notes](https://github.com/prisma/prisma/releases/tag/4.10.0).

Minimum required type checker version

Before this release there were no explicit compatibility requirements for type checkers. From now on we will only support the latest versions of Mypy and Pyright.

In the next release the mypy plugin will be deprecated and later removed entirely. There is a bug in the plugin API in the latest versions of mypy that completely breaks the plugin and seems impossible to fix. See [683](https://github.com/RobertCraigie/prisma-client-py/issues/683) for more information.

Sponsors

Massive thank you to prisma, techied, exponential-hq and danburonline for their continued support! Thank you to paudrow for becoming a sponsor!

![sponsors](https://user-images.githubusercontent.com/23125036/218282700-659ffe6f-6401-4c3d-b7cf-00011822fcea.png)

0.8.0

Bugfixes & add `AND` operator.
Upgrades to Prisma 2.22.0, making the `db push` command generally available.

🌟 **Help us spread the word about Prisma by starring the repo ☝️ or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20Prisma%20Go%20Client%20release%20v0.8.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma-client-go/releases/tag/v0.8.0) about the release.**

Major changes

* feat(generator): add AND operator (467) steebchen

Changes

* feat(prisma): upgrade to 2.20.1 (454) steebchen
* fix(query): add arguments to unlink (456) steebchen
* chore(prisma): upgrade prisma & fix build constraints (458) steebchen
* ci(release-drafter): adapt version in tweet link (459) steebchen
* fix(transaction): adapt upsert & delete tx methods (465) steebchen
* feat(prisma): upgrade prisma to 2.22.0 (470) steebchen

Contributors

steebchen

Interested in providing feedback for the Go client?

We would like to ask you a few questions and get your feedback about the Go client. We'll send merch along your away as a thank you.
If you're interested, email me at steebprisma.io or join our [public Slack](https://slack.prisma.io) and DM me.

0.7.1

Not secure
What's Changed

Bug Fixes

- [Argument list too long when connecting to a database with a large schema error](https://github.com/RobertCraigie/prisma-client-py/issues/486)
- [Generator exit codes and error messages are not propagated on windows](https://github.com/prisma/prisma/issues/10270)
- [Prevent the accidental stripping of sqlite database names that contain the phrase sqlite](https://github.com/RobertCraigie/prisma-client-py/pull/512)
- [Mypy Plugin: Removed UnicodeExpr as it is no longer supported ](https://github.com/RobertCraigie/prisma-client-py/pull/526)
- [Do not copy schema file if generating to the current dir](https://github.com/RobertCraigie/prisma-client-py/pull/515)

Windows Support

This release adds official support for the Windows platform!

The main fix that comes with this release is a workaround for the [missing error messages](https://github.com/prisma/prisma/issues/10270) issue that has plagued so many.

Internal Improvements

A lot of the effort that went into this release was improving our internal testing strategies. This involved a major overhaul of our testing suite so that we can easily test multiple different database providers. This means we will be less likely to ship bugs and will be able to develop database specific features much faster!

In addition to the refactored test suite we also have new docker-based tests for ensuring compatibility with multiple platforms and environments that were previously untested. jacobdr deserves a massive thank you for this!

Sponsors

![sponsors](https://user-images.githubusercontent.com/23125036/201494636-7b57f945-b66f-4a51-81ee-e0c8898ae64c.png)

0.7.0

Not secure
More native types & bugfixes

🌟 **Help us spread the word about Prisma by starring the repo ☝️ or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20Prisma%20Go%20Client%20release%20v0.6.1%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma-client-go/releases/tag/v0.7.0) about the release.**

Major changes

The Go client now supports the native types Bytes, BigInt and Decimal:

go
var views db.BigInt = 1
bytes := []byte("abc")
dec := decimal.NewFromFloat(1.23456789)
created, err := client.User.CreateOne(
db.User.Picture.Set(bytes),
db.User.Balance.Set(dec),
db.User.Views.Set(views),
).Exec(ctx)


Changes

* feat(client): introduce Bytes type (443) steebchen
* feat(client): introduce BigInt type (444) steebchen
* feat(client): introduce Decimal type (445) steebchen
* test(types): add native type test (446) steebchen
* chore: Create SECURITY.md (447) Jolg42
* fix(query): use field type for cursor value (450) steebchen
* fix(json): adapt internal json update handling (451) steebchen

Contributors

Jolg42 and steebchen

Interested in providing feedback for the Go client?

We would like to ask you a few questions and get your feedback about the Go client. We'll send merch along your away as a thank you.
If you're interested, email me at steebprisma.io or join our [public Slack](https://slack.prisma.io) and DM me.

0.6.6

Not secure
This release is a patch release to fix a regression, 402, introduced by the latest [Pydantic release](https://github.com/samuelcolvin/pydantic/releases/tag/v1.9.1).

Page 39 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.