Prisma

Latest version: v0.15.0

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

Scan your dependencies

Page 38 of 44

0.12.1

Patch release for v0.12, which fixes a bug for query builder filters related to [scalar lists](643).

Changes

* test(setup): update postgresql and mysql version (645) s-takehana
* chore(project): use go version 1.16 (639) s-takehana
* fix(logger): rename PHOTON_GO_LOG to PRISMA_CLIENT_GO_LOG (647) steebchen
* fix(test): remove old arg (648) s-takehana
* docs(test): update readme (649) s-takehana
* fix(ast/transform): pick list filters separately (650) steebchen
* fix(ast): introduce list read filters (651) steebchen

Contributors

s-takehana 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.12.0

Scalar list operations, docs improvements, minor fixes

🌟 **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.12.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma-client-go/releases/tag/v0.12.0) about the release.**

Major changes

You can now filter and atomically update scalar lists with Prisma Client Go.

Given the following Prisma schema:

prisma
model User {
id Int id default(autoincrement())
name String
pets String[]
}


You can filter pets with the following code:

go
user, err := client.User.FindFirst(
db.User.Pets.HasSome([]string{"Fido", "Scooby"}),
).Exec(ctx)


And when you add a new furry addition to your family, you can update your list with `Push`:

go
user, err := client.User.FindUnique(
db.User.Name.Equals(1),
).Update(
db.User.Items.Push([]string{"Charlemagne"}),
).Exec(ctx)


Learn more about how to use this new feature in [our documentation](https://github.com/prisma/prisma-client-go/blob/main/docs/reference/12-scalar-lists.md). To dive deeper into the concept of scalar lists, you can read the guide on [Working with scalar lists](https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-scalar-lists-arrays).

Changes

* refactor(engine): add qe.go (595) steebchen
* refactor(generator): group binary related code (596) steebchen
* refactor(generator): extract template and binary functions (597) steebchen
* ci(test): introduce e2e tests (599) steebchen
* docs: fix migration command (601) s-takehana
* docs: fix example code (607) s-takehana
* docs(find): fix example code (609) s-takehana
* docs(fetch): fix example code (614) s-takehana
* docs(introduction): fix example code (613) s-takehana
* docs(filters): fix example code (612) s-takehana
* refactor(ast): pick from many input type names (617) steebchen
* docs(pagination): fix example code (619) s-takehana
* docs(create): fix example code (621) s-takehana
* docs(order-by): fix example code (620) s-takehana
* feat(ast): add list read and write filters (618) steebchen
* docs: use `SortOrderAsc`/`SortOrderDesc` (622) s-takehana
* docs(update): fix example code (623) s-takehana
* docs(upsert): fix example code (625) s-takehana
* docs(delete): fix example code (624) s-takehana
* docs(relations): fix example code (626) s-takehana
* docs(transactions): fix example code (628) s-takehana
* docs(raw): fix example code (627) s-takehana
* docs(json): fix example code (630) s-takehana
* docs(if-present-methods): fix example code (631) s-takehana
* fix(templates): redundant type (633) s-takehana
* docs(limitations): fix link (632) s-takehana
* feat(engine): fail when client is disconnected (634) steebchen
* docs(reference): add scalar list docs (635) steebchen
* docs(reference): update scalar lists docs (636) steebchen
* fix(logger): microsecond resolution (638) s-takehana
* feat(prisma): upgrade prisma to 3.3.0 (642) steebchen

Contributors

s-takehana and steebchen

Special shoutout to s-takehana for all the useful PRs :)

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.11.0

THIS RELEASE CONTAINS BREAKING CHANGES!

Please read the release notes of Prisma 3.x https://github.com/prisma/prisma/releases/tag/3.0.1 which contains many different breaking changes, the primary one being referential actions which breaks previous behaviour. You might want to to checkout the [upgrade path for referential actions](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-3/referential-actions).
This release currently uses the latest Prisma version https://github.com/prisma/prisma/releases/tag/3.1.1.

Note: This release currently does not support MongoDB.

🌟 **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.11.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma-client-go/releases/tag/v0.11.0) about the release.**

Major changes

- Full text search

Enable it in your Go project by adding the `fullTextSearch` preview feature.

patch
generator db {
provider = "go run github.com/prisma/prisma-client-go"
+ previewFeatures = ["fullTextSearch"]
}


go
// Fetch all drafts with a title that contains the words fox or dog
posts, _ := client.Post.FindMany(
db.Post.Title.Search("fox | dog"),
db.Post.Status.Equals("Draft"),
).Exec(context.Background())

// Loop over the posts and print the title
for _, post := range posts {
fmt.Println(post.Title)
}


- Upgrade to prisma 3.1.1
- Introduce [referential actions](https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions)
- Refactor internals
- Tons of bugfixes
- Deprecate some query builder operations to streamline with the JS client ones


Changes

* fix(client): remove deprecated client methods [breaking change] (526) steebchen
* ci(actions): enable on all pull requests (529) steebchen
* fix(update): use correct model casing in update query (530) steebchen
* docs(reference): rename incorrectly named page in readme (540) Looskie
* docs(readme): add info about setting output folder and package name (544) hi019
* docs(reference): adapt order by schema (546) steebchen
* feat(prisma): upgrade prisma to 2.30.0 (554) steebchen
* refactor(generator): [full dmmf] rewrite filters (551) steebchen
* fix(generator): remove old transform methods (558) steebchen
* feat(prisma): upgrade prisma to 2.30.2 (559) steebchen
* feat(ast): introduce ast models (560) steebchen
* fix(query): adapt filters deprecation comment (561) steebchen
* chore(git): rename default branch from master to main (566) steebchen
* feat(ast): add relation read filters (567) steebchen
* fix(dmmf): remove old relation methods (568) steebchen
* fix(mock): add ReturnsMany method for list operations (571) steebchen
* feat(scalars): get scalars from dmmf (574) steebchen
* feat(ast): add indexes (575) steebchen
* fix(transform): adapt filter pick name (576) steebchen
* test(fts): add test for full text search (577) steebchen
* feat(prisma): upgrade prisma to 3.0.2 (579) steebchen
* feat(enums): use internal prisma enums (581) steebchen
* fix(mod): move no-op imports to main.go (582) steebchen
* feat(ast): revert read relation filters (583) steebchen
* feat(prisma): upgrade prisma to 3.1.1 (584) steebchen
* fix(mod): revert "move no-op imports to main.go" (585) steebchen

Contributors

Looskie, hi019 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.10.0

Basic support for .env files + some minor bugfixes around transactions & postgres list fields

🌟 **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.10.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma-client-go/releases/tag/v0.10.0) about the release.**


Changes

* fix(engine): recommend running generate on QE mismatch (488) steebchen
* fix(transactions): return batch result for non-unique ops (490) steebchen
* feat(lifecycle): load dot-env files before connecting (494) steebchen
* fix(create): do not require list fields on create (504) steebchen
* feat(prisma): upgrade to prisma2.26.0 (506) 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.9.1

This release pins `pydantic` to `< 2` as `v2.0.0` is not yet compatible with Prisma.

Misc Changes

* [fix(client): ensure engine protocol is properly set](https://github.com/RobertCraigie/prisma-client-py/pull/771)
* [docs: add missing code block close tag](https://github.com/RobertCraigie/prisma-client-py/pull/773)
* [docs: polishes & typos](https://github.com/RobertCraigie/prisma-client-py/pull/772)

Thanks to izeye and Leon0824 for contributing!

Sponsors

![sponsors](https://github.com/RobertCraigie/prisma-client-py/assets/23125036/a5665ad3-f895-4683-b921-b34b7bae9563)

0.9.0

Go1.16 support & 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.9.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma-client-go/releases/tag/v0.9.0) about the release.**

Major changes

Go1.16 requires go.mod/go.sum to be up-to-date and that broke for generated code, as go mod tidy can't figure out what modules are needed before generating code. This is fixed by adding no-op imports in the Go client at a top-level, so they can be detected by Go modules correctly.

Changes

* fix(query): adapt default param struct name (474) steebchen
* docs(readme): start documenting how to test (469) matthewmueller
* docs(quickstart): remove --preview-feature flag (472) alfuhigi
* docs(quickstart): adapt code example import path (476) steebchen
* docs(quickstart): temporarily adapt quickstart (481) steebchen
* fix(prisma): upgrade to 2.22.1 patch version (480) steebchen
* feat(prisma): upgrade to 2.23.0 (484) steebchen
* fix(header): add no-op imports for go modules (485) steebchen

Contributors

alfuhigi, matthewmueller 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.

Page 38 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.