Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): upgrade prisma-client-go to v0.35.0 #196

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/shopspring/decimal v1.3.1
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.16.0
github.com/steebchen/prisma-client-go v0.32.1
github.com/steebchen/prisma-client-go v0.35.0
github.com/tink-crypto/tink-go v0.0.0-20230613075026-d6de17e3f164
github.com/tink-crypto/tink-go-gcpkms v0.0.0-20230602082706-31d0d09ccc8d
go.opentelemetry.io/otel v1.21.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1Fof
github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=
github.com/steebchen/prisma-client-go v0.32.1 h1:7jUke4XVSzUkV2TN4VhYSwjU7qizM9w475gpudkLCNI=
github.com/steebchen/prisma-client-go v0.32.1/go.mod h1:shY2GTQyv15WYTE4p2zffr01ratTzX0zXtBWnDHiLpo=
github.com/steebchen/prisma-client-go v0.35.0 h1:PpVJBEKfZugLoFU5ICFtskR3sjW5eJZtTG/AZbN4W8A=
github.com/steebchen/prisma-client-go v0.35.0/go.mod h1:shY2GTQyv15WYTE4p2zffr01ratTzX0zXtBWnDHiLpo=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
Expand Down
5 changes: 2 additions & 3 deletions internal/repository/prisma/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"strings"

"github.com/google/uuid"
"github.com/steebchen/prisma-client-go/runtime/transaction"

"github.com/hatchet-dev/hatchet/internal/repository"
"github.com/hatchet-dev/hatchet/internal/repository/prisma/db"
Expand Down Expand Up @@ -70,7 +69,7 @@ func (r *userRepository) CreateUser(opts *repository.CreateUserOpts) (*db.UserMo
params...,
).Tx()

txs := []transaction.Param{
txs := []db.PrismaTransaction{
createTx,
}

Expand Down Expand Up @@ -120,7 +119,7 @@ func (r *userRepository) UpdateUser(id string, opts *repository.UpdateUserOpts)
params...,
).Tx()

txs := []transaction.Param{
txs := []db.PrismaTransaction{
updateTx,
}

Expand Down
5 changes: 2 additions & 3 deletions internal/repository/prisma/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/rs/zerolog"
"github.com/steebchen/prisma-client-go/runtime/transaction"

"github.com/hatchet-dev/hatchet/internal/repository"
"github.com/hatchet-dev/hatchet/internal/repository/prisma/db"
Expand Down Expand Up @@ -127,7 +126,7 @@ func (w *workerRepository) CreateNewWorker(tenantId string, opts *repository.Cre
return nil, err
}

txs := []transaction.Param{}
txs := []db.PrismaTransaction{}

workerId := uuid.New().String()

Expand Down Expand Up @@ -212,7 +211,7 @@ func (w *workerRepository) UpdateWorker(tenantId, workerId string, opts *reposit
return nil, err
}

txs := []transaction.Param{}
txs := []db.PrismaTransaction{}

optionals := []db.WorkerSetParam{}

Expand Down
3 changes: 1 addition & 2 deletions internal/repository/prisma/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/rs/zerolog"
"github.com/steebchen/prisma-client-go/runtime/transaction"

"github.com/hatchet-dev/hatchet/internal/dagutils"
"github.com/hatchet-dev/hatchet/internal/repository"
Expand Down Expand Up @@ -341,7 +340,7 @@ func (r *workflowRepository) CreateSchedules(
return nil, err
}

txs := []transaction.Param{}
txs := []db.PrismaTransaction{}
results := []createScheduleTxResult{}

for _, scheduledTrigger := range opts.ScheduledTriggers {
Expand Down
Loading