'is there another way to generate client with prisma-client-go?

i am setting up a project in go and i want to use the prisma-client-go as ORM tool. i have setup schema.prisma file like this

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

generator db {
    provider = "go run github.com/prisma/prisma-client-go"
    // set the output folder and package name
    output           = "./db"
    package          = "db"
}

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

from the github docs, i have to run the generate command but when i run this

go run github.com/prisma/prisma-client-go migrate dev --name init

only a migration directory is outputted. no generated client folder hence i cannot make use of the said schema... any pointers to what i'm getting wrong? i have created a brand new project as well just to double check but i get the same behaviour



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source