prisma-client-go

Prisma Client Go is an auto-generated and fully type-safe database client

APACHE-2.0 License

Stars
1.9K
Committers
25

Bot releases are visible (Hide)

prisma-client-go - v0.37.0 Latest Release

Published by github-actions[bot] 6 months ago

v0.37.0

Add .Select() and .Omit(). Omitted fields will default to their zero value.
Upgrades prisma to v5.13.0.

Major changes

  • feat(builder): add omit option (#1250) @steebchen
  • feat(builder): add select option (#1252) @steebchen

Changes

  • chore(prisma): upgrade prisma to v5.12.1 (#1234) @steebchen
  • ci(integration): use macos-12 (#1248) @steebchen
  • chore(prisma): upgrade prisma to v5.13.0 (#1247) @steebchen
  • chore(deps): upgrade go to 1.21 (#1251) @steebchen
  • docs(fields): add select & omit docs (#1253) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.36.0...v0.37.0

prisma-client-go - v0.36.0

Published by github-actions[bot] 7 months ago

v0.36.0

Upgrade Prisma to v5.12.0

Major changes

  • chore(prisma): upgrade prisma to v5.11.0 (#1216) @steebchen
  • chore(prisma): upgrade prisma to v5.12.0 (#1232) @steebchen

Changes

  • docs(getting-started): fix API reference link (#1224) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.35.0...v0.36.0

prisma-client-go - v0.35.0

Published by github-actions[bot] 8 months ago

v0.35.0

Make sure .Disconnect() works as intended.

Major changes

  • fix(lifecycle): prevent signal forwarding (#1201) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.34.0...v0.35.0

prisma-client-go - v0.34.0

Published by github-actions[bot] 8 months ago

v0.34.0

Upgrade Prisma to v5.10.2, internal fixes and exports a PrismaTransaction interface.

Major changes

TODO: list major changes

Changes

  • chore(prisma): upgrade prisma to v5.9.1 (#1171) @steebchen
  • ci(publish-cli): add release note links to PR body (#1172) @steebchen
  • chore(prisma): upgrade prisma to v5.10.0 (#1191) @steebchen
  • chore(prisma): upgrade prisma to v5.10.1 (#1192) @steebchen
  • fix(lifecycle): adapt close channel handling (#1193) @steebchen
  • feat(transactions): export transaction types (#1180) @steebchen
  • test(all): run tests with -race (#1194) @steebchen
  • feat(tpl): export Transaction type in client (#1196) @steebchen
  • chore(prisma): upgrade prisma to v5.10.2 (#1197) @steebchen
  • feat(tpl): rename Transaction to PrismaTransaction (#1199) @steebchen
  • docs(transactions): expand docs on relations and slices (#1200) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.33.0...v0.34.0

prisma-client-go - v0.33.0

Published by github-actions[bot] 9 months ago

v0.33.0

pgrade prisma to v5.9.0

Major changes

  • chore(prisma): upgrade prisma to v5.9.0 (#1167) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.32.1...v0.33.0

prisma-client-go - v0.32.1

Published by github-actions[bot] 9 months ago

v0.32.1

Upgrade Prisma minor version for hotfixes

Changes

  • chore(prisma): upgrade prisma to v5.8.1 (#1155) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.32.0...v0.32.1

prisma-client-go - v0.32.0

Published by github-actions[bot] 9 months ago

v0.32.0

Add unique constraint violation error checks & upgrade Prisma to v5.8.0

Major changes

  • chore(prisma): upgrade prisma to v5.8.0 (#1148) @steebchen
  • feat(errors): add unique constraint violation error (#1069) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.31.5...v0.32.0

prisma-client-go - v0.31.5

Published by github-actions[bot] 10 months ago

v0.31.5

Yet another casing-related bugfix 😁

Changes

  • fix(generator): consider model type casing (#1144) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.31.4...v0.31.5

prisma-client-go - v0.31.4

Published by github-actions[bot] 10 months ago

v0.31.4

Plenty of bugfixes

Changes

  • fix(engine): adapt datasource handling (#1136) @steebchen
  • fix(generator): major casing refactor (#1137) @steebchen
  • fix(engine): minor changes (#1138) @steebchen
  • fix(ast): undo primary key changes (#1139) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.31.3...v0.31.4

prisma-client-go - v0.31.3

Published by github-actions[bot] 10 months ago

v0.31.3

Patch fix for unique field query methods, fixing a regression

Changes

  • fix(generator): adapt unique field casing (#1135) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.31.2...v0.31.3

prisma-client-go - v0.31.2

Published by github-actions[bot] 10 months ago

v0.31.2

Upgrade prisma from v5.7.0 to v5.7.1 for some minor fixes.

Changes

  • chore(prisma): upgrade prisma to v5.7.1 (#1131) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.31.1...v0.31.2

prisma-client-go - v0.31.1

Published by github-actions[bot] 10 months ago

v0.31.1

Patch release just to remove an unnecessary log in debug mode so that your credentials can't be leaked in those.

Changes

  • fix(engine): remove log to prevent leaking logs (#1129) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.31.0...v0.32.0

prisma-client-go - v0.31.0

Published by github-actions[bot] 10 months ago

v0.31.0

Prisma engine binary improvements

Changes

  • fix(engine-binary): adapt build tag generation (#1125) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.30.0...v0.31.0

prisma-client-go - v0.30.0

Published by github-actions[bot] 11 months ago

v0.30.0

Upgrade to Prisma v5.7.0, which comes with some major query improvements (using preview features)

See full Prisma v5.7.0 release notes

Major changes

  • chore(prisma): upgrade prisma to v5.7.0 (#1120) @steebchen

Changes

  • test(schemas): add multi-schema test (#1115) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.29.0...v0.30.0

prisma-client-go - v0.29.0

Published by github-actions[bot] 11 months ago

v0.29.0

Internal improvements, upgrade Prisma, better handle generated code by getting rid of third party libraries

NOTE: If you have enums or some specific model field name casing or potentially changes in your go.mod, you might run into breaking changes. However, this is easy to fix as you would just need to adapt the occurrences of the fields to the new naming.

For example, if you use uppercase enum values in your schema.prisma, Prisma Client Go enum fields change from UserROLE to UserRole. There might be also some minor differences in cases like Last7d, which changed to Last7D.

Major changes

  • refactor(case): vendor case libs (#1101) @steebchen

Changes

  • feat(generator): warn on prisma version mismatch (#1100) @steebchen
  • refactor(generator): manually define template order (#1104) @steebchen
  • refactor(binaries): move version definition to version.go (#1105) @steebchen
  • chore(prisma): upgrade prisma to v5.6.0 (#1106) @steebchen
  • test(binaries): improve local binaries test (#1108) @steebchen
  • test(enums): add some casing tests (#1112) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.28.0...v0.29.0

prisma-client-go - v0.28.0

Published by github-actions[bot] 12 months ago

v0.28.0

  • Improves error reporting for query engine errors (beta)
  • Disallow duplicate fields; see #1095 for details. This might be a breaking change, but previous behavior was wrong, now it errors consistently if there is a duplicate field.

Major changes

  • fix(builder): disallow duplicate fields (#1094) @steebchen
  • feat(engine): stream and parse logs (#1073) @steebchen

Changes

  • test(sqlite): run sqlite path tests only in e2e (#1080) @steebchen
  • refactor(test/enums): use table test for enums (#1090) @steebchen
  • refactor(tests): use massert everywhere (#1096) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.27.1...v0.28.0

prisma-client-go - v0.27.1

Published by github-actions[bot] 12 months ago

v0.27.1

Prevents collision with models named Config due to the recently introduced new config options.

Changes

  • fix(client): rename Config -> PrismaConfig (#1076) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.27.0...v0.28.0

prisma-client-go - v0.27.0

Published by github-actions[bot] 12 months ago

v0.27.0

Upgrade Prisma, add data source URL option, fix SQLite relative paths, increase test coverage, minor fixes, improve docs

// new option!
client := db.NewClient(
  db.WithDatasourceURL("postgresql://localhost:5432/mydb?schema=public"),
)

Major changes

  • chore(prisma): upgrade prisma to v5.5.0 (#1054) @steebchen
  • feat(generator): sanitize connection URL for sqlite relative dirs (#1059) @steebchen
  • fix(cli): override init command to use go provider (#1055) @steebchen
  • feat(client): add data source URL option override (#1060) @steebchen
  • docs(quickstart): add cloneable repo demo (#1056) @steebchen

Changes

  • test(postgres/raw): test for enums and db types (#1051) @steebchen
  • chore(prisma): upgrade prisma to v5.5.2 (#1065) @steebchen
  • docs(client): add client ref docs with options (#1062) @steebchen
  • test(errors): add notfound errors test package (#1068) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.26.0...v0.27.0

prisma-client-go - v0.26.0

Published by github-actions[bot] about 1 year ago

v0.26.0

Upgrade Prisma to v5.4.2 & internal updates

Changes

  • docs(walkthrough): also add "none" relation filter docs to relations (#1019) @steebchen
  • chore(vercel): silence vercel comments (#1025) @steebchen
  • chore(prisma): upgrade to prisma 5.4.1 (#1027) @steebchen
  • chore(gitignore): ignore pkg cli build file (#1035) @steebchen
  • chore(prisma): upgrade prisma to v5.4.2 (#1040) @steebchen
  • ci(publish-cli): use custom GH token for auto squash (#1043) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.25.0...v0.26.0

prisma-client-go - v0.25.0

Published by github-actions[bot] about 1 year ago

v0.25.0

Upgrade to Prisma 5.3.1, add "none" relation filter, internal improvements & more test coverage

Major changes

  • chore(prisma): upgrade to prisma 5.3.1 (#1017) @steebchen
  • feat(relations): add "none" relation filter (#1015) @steebchen

Changes

  • test(json): add some rows to tests (#1001) @steebchen
  • fix(lifecycle): ensure client is connected (#1003) @steebchen
  • test(relations): extend some tests to ensure nested take works (#1006) @steebchen
  • chore(docs): bump tool-versions (#1009) @steebchen
  • chore(docs): upgrade all deps, use save exact (#1014) @steebchen

Contributors

@steebchen


Full Changelog: https://github.com/steebchen/prisma-client-go/compare/v0.24.0...v0.25.0