Prisma

Latest version: v0.13.1

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

Scan your dependencies

Page 41 of 42

0.0.8

A small release containing bugfixes and documentation updates.

Changes

* fix(query): match compound keys to model (239) steebchen
* refactor(code): minor code improvements (241) steebchen
* ci(lint): use golangcilint cli (240) steebchen
* ci(lint): adapt trigger to push & pr (242) steebchen
* docs(readme): improve go database libraries list (238) satishbabariya
* docs(reference/raw): update raw methods to new spec (243) steebchen
* fix(fetch): use field type for OrderBy params (245) steebchen
* docs(all): refactor docs (244) steebchen

Contributors

satishbabariya and steebchen

0.0.7

A small patch release to adapt the naming of generated query engine go files, plus clean up some old documentation.

Major changes

The generated go query engine files are now named `query-engine-{platform}_gen.go`, and the automatically generated gitignore is adapted as well.

Changes

* fix(binaries): use all_commits binaries url (223) steebchen
* docs(quickstart): remove generator options (225) steebchen
* ci(lint): use golangci-lint github action (226) steebchen
* ci(test): cache test workflow deps (231) steebchen
* fix(generator): use _gen suffix for query engine files (234) steebchen
* docs(quickstart): remove outdated configuration hints (236) steebchen

Contributors

steebchen

0.0.6

Upgrades Prisma to its stable version 2.0.0 and introduces a [new pagination API](https://github.com/prisma/prisma/releases/tag/2.0.0-beta.7) as well as differences in the [raw API](https://github.com/prisma/prisma/releases/tag/2.0.0-beta.8). We also [renamed internal structs](https://github.com/prisma/prisma-client-go/pull/218) from "RawX" to "InternalX" to prevent confusion with the SQL raw API.

Major changes

* chore(prisma): upgrade to prisma 2.0.0-beta.7 (217) steebchen
* fix(tpl/models): rename model prefix Raw to Internal (218) steebchen
* chore(prisma): upgrade to prisma 2.0.0-beta.9 (220) steebchen
* chore(prisma): upgrade to prisma 2.0.0 (222) steebchen

Contributors

steebchen

0.0.5

Binary files refactor. The prisma go client uses the prisma query engine internally.

Instead of fetching the query engine on runtime, it is now fetched on generate time into the user's project dir.
The correct binary is picked up by go build using build constraints. There will also be a .gitignore generated into the output dir so that the generated prisma client and the query engine files are ignored by default.

The output field in the schema.prisma file now accepts a folder instead of a file.

Major changes

* feat(binaries): load binaries into project dir (214) steebchen

Contributors

steebchen

0.0.4

🚨 This release contains breaking changes 🚨

Removal of aiohttp and requests

Support for `aiohttp` and `requests` has been removed in favour of [httpx](https://github.com/encode/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:

prisma
generator client {
provider = "prisma-client-py"
interface = "asyncio"
}


If you used `requests` before you should use the following:

prisma
generator client {
provider = "prisma-client-py"
interface = "sync"
}


Changes

Support for Json types

You can now make use of Prisma's `Json` type.

prisma
model User {
id Int default(autoincrement())
meta Json
}


You can create and search for `Json` values like so:

py
from prisma import Json

user = await client.user.create(
data={
'meta': Json.keys(country='Scotland'),
}
)


py
from prisma import Json

user = await client.user.find_first(
where={
'meta': Json({'country': 'Scotland'})
or
'meta': {
'equals': Json.keys(country='Scotland'),
'NOT': Json(['foo']),
}
}
)


Other changes
- Adds support for `BigInt` types.
- Improves error message for unsupported types.
- Improves type safety for atomic updates.

0.0.3

This release fixes broken links in the README

Page 41 of 42

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.