prisma-client-go

command module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

README


Prisma Client Go

Typesafe database access for Go

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

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.

Contributing

Running Tests

# requires docker to be installed
go run ./test/setup/init setup # sets up docker containers for integration testing
go generate ./...
go test ./... -v

# to teardown docker containers:
go run ./test/setup/init teardown

Writing Commit Messages

We use conventional commits (also known as semantic commits) to ensure consistent and descriptive commit messages.

Security

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
platform
Package platform provides runtime methods to find out the correct prisma binary to use
Package platform provides runtime methods to find out the correct prisma binary to use
Package generator acts as a prisma generator
Package generator acts as a prisma generator
Package jsonrpc enables communication with Prisma
Package jsonrpc enables communication with Prisma
runtime
raw
cmd
setup/generate
Package generate runs prisma generate in parallel
Package generate runs prisma generate in parallel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL