Skip to content
Testing transactions with multiple operations sent in batch.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
db.go
docker-compose.yml
main.go
schema.sql
service.go

README.md

PostgreSQL batch operations in Go

Testing transactions with multiple operations sent in batch.

Dependencies

Docker and Docker Compose

Install

Start

go run *.go

Usage

curl -X POST \
  http://localhost:8608/users \
  -H 'content-type: application/json' \
  -d '{
	"username": "johndoe",
	"profile":{  
         "firstname":"John",
         "lastname":"Doe"
      },
    "score": 5432
  }'
curl -X GET \
  http://localhost:8608/users \
  -H 'content-type: application/json'
curl -X GET \
  http://localhost:8608/actions \
  -H 'content-type: application/json'

Database admin

You can’t perform that action at this time.