diff --git a/generator/templates/_header.gotpl b/generator/templates/_header.gotpl index 43d98621..a97fcc48 100644 --- a/generator/templates/_header.gotpl +++ b/generator/templates/_header.gotpl @@ -16,6 +16,11 @@ import ( "github.com/prisma/prisma-client-go/runtime/raw" "github.com/prisma/prisma-client-go/runtime/builder" "github.com/prisma/prisma-client-go/runtime/transaction" + + // no-op import for go modules + _ "github.com/shopspring/decimal" + _ "github.com/iancoleman/strcase" + _ "github.com/takuoki/gocase" ) // re-declare variables which are needed in Prisma Client Go but also should be exported diff --git a/runtime/lifecycle/lifecycle.go b/runtime/lifecycle/lifecycle.go index c993dbb8..c9a283d7 100644 --- a/runtime/lifecycle/lifecycle.go +++ b/runtime/lifecycle/lifecycle.go @@ -8,7 +8,7 @@ type Lifecycle struct { Engine engine.Engine } -// Connects to the Prisma query engine. Required to call before accessing data. +// Connect connects to the Prisma query engine. Required to call before accessing data. // It is recommended to immediately defer calling Disconnect. // // Example: @@ -26,7 +26,7 @@ func (c *Lifecycle) Connect() error { return c.Engine.Connect() } -// Disconnects from the Prisma query engine. +// Disconnect disconnects from the Prisma query engine. // This is usually invoked on kill signals in long running applications (like webservers), // or when no database access is needed anymore (like after executing a CLI command). //