steebchen / prisma-client-go

Prisma Client Go is an auto-generated and fully type-safe database client
https://goprisma.org
Apache License 2.0
2.02k stars 96 forks source link

Problem on db push operation on v0.37.0 #1278

Open kusaljr opened 1 month ago

kusaljr commented 1 month ago
image

I'm using M2, go version go1.22.3 darwin/arm64

My schema

datasource db {
    // could be postgresql or mysql
    provider = "sqlite"
    url      = "file:dev.db"
}

generator db {
    provider = "go run github.com/steebchen/prisma-client-go"
}

model Post {
    id        String   @id @default(cuid())
    createdAt DateTime @default(now())
    updatedAt DateTime @updatedAt
    title     String
    published Boolean
    desc      String?
}
steebchen commented 1 month ago

Does generate work? I'm guessing the same issue? Really weird, I haven't tested on M2 as I don't have access to one (I'm on M1)

kusaljr commented 1 month ago

Same issue in generate also

image

@steebchen

My schema.prisma file

datasource db {
    // could be postgresql or mysql
    provider = "sqlite"
    url      = "file:dev.db"
}

generator db {
    provider = "go run github.com/steebchen/prisma-client-go"
}

model Post {
    id        String   @id @default(cuid())
    createdAt DateTime @default(now())
    updatedAt DateTime @updatedAt
    title     String
    published Boolean
    desc      String?
}
steebchen commented 1 month ago

If you can set PRISMA_CLIENT_GO_LOG=debug and then re-run everything and paste it here, that might be helpful for me to debug

kusaljr commented 1 month ago

Here is debug log for generate

image

Here is debug log for db push

image
steebchen commented 1 month ago

Thanks. Can you please try running the engine in your console:

/Users/macbook/Library/Caches/prisma/binaries/cli/5.13.0/prisma-cli-darwin-arm64 version

and check if it has the same error?