Releases: steebchen/prisma-client-go
v0.16.1
v0.16.1
Fix a query builder order which prevents flaky mock testing. It does not affect production queries.
Major changes
- fix(mocks): build fields in deterministic order (#742) @robojones
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
v0.15.0
Upgrade Prisma to 3.13.0
Major changes
- chore(prisma): upgrade prisma to 3.13.0 (#737) @steebchen
Changes
- chore(deps): bump actions/setup-go from 2 to 3 (#733) @dependabot
Contributors
@dependabot, @dependabot[bot] and @steebchen
v0.14.0
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
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
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
- refactor: use
io
andos
instead ofio/ioutil
(#653) @s-takehana - docs(readme): add badges (#654) @s-takehana
- chore(idea): use new log env var in test config (#656) @steebchen
- fix(builder): re-use fields, remove AND wrapping (#657) @steebchen
- test(types/json): add json filter tests (#659) @steebchen
- feat(proxy): add data proxy engine implementation & test (#598) @steebchen
- chore(project): enable dependabot version updates (#641) @s-takehana
- feat(prisma): upgrade prisma to 3.4.0 (#671) @steebchen
- chore(deps): bump golang from 1.16 to 1.17.2 in /test/integration (#672) @dependabot
- chore(deps): bump github.com/stretchr/testify from 1.4.0 to 1.7.0 (#675) @dependabot
- ci(e2e): enable verbose logging (#677) @steebchen
- fix(proxy): introduce retryableRequest, minor fixes (#678) @steebchen
- feat(client): add order by relevance (#660) @steebchen
- chore(deps): bump actions/checkout from 1 to 2.4.0 (#673) @dependabot
- chore(deps): bump amannn/action-semantic-pull-request from 1.1.1 to 3.4.6 (#674) @dependabot
- chore(deps): bump github.com/shopspring/decimal from 1.2.0 to 1.3.1 (#676) @dependabot
- chore(deps): bump github.com/joho/godotenv from 1.3.0 to 1.4.0 (#679) @dependabot
- fix(builder): remove log (#683) @steebchen
- docs(reference/json): add json filter docs (#682) @steebchen
- fix(builder): wrap order by inputs in list (#685) @steebchen
- chore(deps): bump golang from 1.17.2 to 1.17.3 in /test/integration (#680) @dependabot
- refactor(tests): replace word 'fail' in tests (#686) @steebchen
- fix(generator): don't generate gitignores w/o binaries (#687) @steebchen
- chore(idea): set new log variable in e2e test config (#689) @steebchen
- docs(proxy): add data proxy docs (#690) @steebchen
- docs(features): add case sensitivity docs (#691) @steebchen
- docs(features): add index readme (#692) @steebchen
- test(mongodb): add mongodb integration tests (#693) @steebchen
- feat(generator): export query builder interfaces (#694) @steebchen
- test(generator): skip generation on db push (#695) @steebchen
- chore(deps): bump golang from 1.17.3 to 1.17.4 in /test/integration (#700) @dependabot
- chore(deps): bump amannn/action-semantic-pull-request from 3.4.6 to 3.5.0 (#703) @dependabot
- docs(readme): add note about maintenance status (#708) @matthewmueller
- chore(deps): bump golang from 1.17.4 to 1.17.5 in /test/integration (#701) @dependabot
- chore(prisma): upgrade prisma to 3.7.0 (#709) @steebchen
- docs(readme): adapt deprecation notice (#711) @nikolasburk
- chore(deps): bump golang from 1.17.5 to 1.17.6 in /test/integration (#713) @dependabot
- docs(contributing): add CONTRIBUTING.md and more READMEs (#710) @steebchen
Contributors
@dependabot, @dependabot[bot], @matthewmueller, @nikolasburk, @s-takehana and @steebchen
v0.12.2
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
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
v0.12.1
Patch release for v0.12, which fixes a bug for query builder filters related to scalar lists.
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
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
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
- 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
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
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
- 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 [email protected] or join our public Slack and DM me.
v0.10.0
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
- 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 [email protected] (#506) @steebchen
Contributors
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.