Skip to content

prisma/prisma-client-go

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

Prisma Client Go

Typesafe database access for Go

           
Quickstart   •   Website   •   Docs   •   API reference   •   Blog   •   Slack   •   Twitter

Deprecation note

Prisma Client Go is no longer officially maintained. Read this issue to learn more.

Description

Prisma Client Go is an auto-generated query builder that enables type-safe database access and reduces boilerplate. You can use it as an alternative to traditional ORMs such as gorm, xorm, sqlboiler and most database-specific tools.

It is part of the Prisma ecosystem. Prisma provides database tools for data access, declarative data modeling, schema migrations and visual data management.

NOTE: Prisma Client Go is currently offered under our early access program. There will be documented breaking changes with new releases.

Getting started

To get started, read our quickstart tutorial to add Prisma to your project in just a few minutes.

You also might want to read deployment tips and the full API reference.

Notes

The go client works slightly different than the normal Prisma tooling. When you're using the go client, whenever you see Prisma CLI commands such as prisma ..., you should always write go run github.com/prisma/prisma-client-go ... instead.

If you just work with the Go client and don't have (or want) the NodeJS Prisma CLI installed, you can set up an alias so that you can write prisma commands as usual, but it'll invoke the real locally bundled Prisma CLI. To do that, edit your ~/.bashrc or ~/.zshrc and add:

alias prisma="go run github.com/prisma/prisma-client-go"

Now prisma generate and any other command will work, and it'll just run 1go run github.com/prisma/prisma-client-go generate under the hood.

Contributing

Check out our advanced contributing guide.

Security

If you have a security issue to report, please contact us at security@prisma.io