Skip to content

Releases: steebchen/prisma-client-go

v0.0.2

03 Jun 12:27
5f4eb61
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release

v0.0.2

This release provides bugfixes and introduces new features.

Major changes

Changes

Contributors

@Nohac and @steebchen

v0.0.1

08 Apr 17:03
d367c5b
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

First release: v0.0.1

This is the first release of the Go client. Please note that it's experimental and not production ready; we just introduce releases to make it easier to document changes and improve the experience with Go modules.

This release uses the Prisma CLI @prisma/cli@2.0.0-beta.2.

Breaking changes

This affects people who have used Prisma Go client before this release, i.e. directly from the master branch.

General changes

The internal Prisma CLI was upgraded from alpha.403 to beta.2. Please follow the upgrade instructions for preview023, preview024, and preview025, beta.1 and beta.2 on the Prisma CLI releases page. This was a major upgrade and will happen much more incremental in the future instead of big updates like this.

Schema

The provider has changed to go run github.com/prisma/prisma-client-go:

   generator db {
-    provider = "prisma-client-go"
+    provider = "go run github.com/prisma/prisma-client-go"
     output = "./db/db_gen.go"
     package = "db"
   }

Cursors

When querying for cursors, the fields now have to specified explicitly.

  posts, err := client.
  	Post.
  	FindMany().
  	OrderBy(
  		Post.Title.Order(ASC),
  	).
  	Last(2).
- 	Before("c").
+ 	Before(Post.Title.Cursor("c")).
  	Exec(ctx)

Load syntax

The .Load() Syntax temporarily doesn't support multiple queries on the root level. This is only a temporary limitation which will be removed in the future. You can still query for nested relations.

Other changes

We now use zeit/pkg to build a binary of the Prisma CLI.