An open API service indexing awesome lists of open source software.

https://github.com/steebchen/prisma-go-demo

A very basic demo for the Prisma Go Client
https://github.com/steebchen/prisma-go-demo

go golang prisma

Last synced: 3 months ago
JSON representation

A very basic demo for the Prisma Go Client

Awesome Lists containing this project

README

        

# Prisma Go Demo

## Instructions

```shell script
git clone [email protected]:steebchen/prisma-go-demo.git
cd prisma-go-demo
go run github.com/steebchen/prisma-client-go db push
go run .
# created post: {
# "id": "ckfnrp7ec0000oh9kygil9s94",
# "createdAt": "2020-09-29T09:37:44.628Z",
# "updatedAt": "2020-09-29T09:37:44.628Z",
# "title": "Hi from Prisma!",
# "published": true,
# "desc": "Prisma is a database toolkit and makes databases easy."
# }
# post: {
# "id": "ckfnrp7ec0000oh9kygil9s94",
# "createdAt": "2020-09-29T09:37:44.628Z",
# "updatedAt": "2020-09-29T09:37:44.628Z",
# "title": "Hi from Prisma!",
# "published": true,
# "desc": "Prisma is a database toolkit and makes databases easy."
# }
# The posts's title is: Prisma is a database toolkit and makes databases easy.
```

## Next steps

Read the docs at [GoPrisma](https://goprisma.org/docs).