Skip to content

Releases: steebchen/prisma-client-go

v0.16.1

11 May 15:03
d6e75e7
Compare
Choose a tag to compare

v0.16.1

Fix a query builder order which prevents flaky mock testing. It does not affect production queries.

Major changes

Changes

  • ci(workflows): run on push instead of pull_request (#739) @steebchen
  • chore(deps): bump amannn/action-semantic-pull-request from 4.2.0 to 4.4.0 (#736) @dependabot
  • chore(deps): bump golang from 1.18.0 to 1.18.1 in /test/integration (#734) @dependabot
  • chore(deps): bump amannn/action-semantic-pull-request from 4.4.0 to 4.5.0 (#741) @dependabot
  • ci(workflows): run on PR for third party repo PRs (#745) @steebchen

Contributors

@dependabot, @dependabot[bot], @robojones and @steebchen

v0.15.0

02 May 14:09
81a3678
Compare
Choose a tag to compare

v0.15.0

Upgrade Prisma to 3.13.0

Major changes

Changes

Contributors

@dependabot, @dependabot[bot] and @steebchen

v0.14.0

06 Apr 07:01
b01582d
Compare
Choose a tag to compare

v0.14.0

Upgrade prisma to 3.12.0

Changes

  • chore(deps): bump amannn/action-semantic-pull-request from 4.0.1 to 4.1.0 (#723) @dependabot
  • chore(deps): bump amannn/action-semantic-pull-request from 4.1.0 to 4.2.0 (#724) @dependabot
  • chore(deps): bump golang from 1.17.6 to 1.17.7 in /test/integration (#725) @dependabot
  • chore(deps): bump golang from 1.17.7 to 1.17.8 in /test/integration (#728) @dependabot
  • chore(deps): bump actions/checkout from 2.4.0 to 3 (#726) @dependabot
  • chore(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#729) @dependabot
  • chore(deps): bump actions/cache from 2 to 3 (#731) @dependabot
  • chore(deps): bump golang from 1.17.8 to 1.18.0 in /test/integration (#730) @dependabot
  • chore(prisma): upgrade prisma to 3.12.0 (#732) @steebchen

Contributors

@dependabot, @dependabot[bot] and @steebchen

v0.13.1

04 Feb 16:44
6605270
Compare
Choose a tag to compare

v0.13.1

Query builder bugfix patch release

Changes

  • ci(release-drafter): adapt template (#716) @steebchen
  • fix(builder): ignore model operations on unique check (#722) @steebchen
  • chore(deps): bump amannn/action-semantic-pull-request from 3.6.0 to 4.0.1 (#720) @dependabot
  • test(basic): add complex and/or query with re-used fields (#721) @steebchen

Contributors

@dependabot, @dependabot[bot] and @steebchen

v0.13.0

19 Jan 16:34
a558b72
Compare
Choose a tag to compare

v0.13.0

JSON filtering, FTS order by relevance, bugfixes, bump Prisma CLI, docs

🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release.

Major changes

  • Add/fix json filtering
  • Add full text search by relevance

Changes

Contributors

@dependabot, @dependabot[bot], @matthewmueller, @nikolasburk, @s-takehana and @steebchen

v0.12.2

26 Oct 17:11
95ca076
Compare
Choose a tag to compare

v0.12.2

Patch release for v0.12, which fixes a bug related to query engine unpacking.

Changes

  • fix(binaries): add engine version to db_gen for unpack (#652) @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 [email protected] or join our public Slack and DM me.

v0.12.1

26 Oct 15:00
d0a8a0b
Compare
Choose a tag to compare

v0.12.1

Patch release for v0.12, which fixes a bug for query builder filters related to scalar lists.

Changes

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 [email protected] or join our public Slack and DM me.

v0.12.0

20 Oct 09:17
6d3749e
Compare
Choose a tag to compare

v0.12.0

Scalar list operations, docs improvements, minor fixes

🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release.

Major changes

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

Given the following Prisma schema:

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

You can filter pets with the following code:

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:

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. To dive deeper into the concept of scalar lists, you can read the guide on Working with scalar lists.

Changes

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 [email protected] or join our public Slack and DM me.

v0.11.0

21 Sep 18:00
02f836a
Compare
Choose a tag to compare

v0.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.
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 about the release.

Major changes

  • Full text search

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

generator db {
   provider        = "go run github.com/prisma/prisma-client-go"
+  previewFeatures = ["fullTextSearch"]
}
// 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
  • Refactor internals
  • Tons of bugfixes
  • Deprecate some query builder operations to streamline with the JS client ones

Changes

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 [email protected] or join our public Slack and DM me.

v0.10.0

07 Jul 16:01
91e1064
Compare
Choose a tag to compare

v0.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 about the release.

Changes

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 [email protected] or join our public Slack and DM me.