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

https://github.com/jailtonjunior94/go-uow

🚀 Desenvolvimento de aplicação utilizando Golang + Postgres + Migrate + SQLC + UOW + GraphQL
https://github.com/jailtonjunior94/go-uow

golang graphql migrate migrations postgresql sqlc uow-pattern

Last synced: about 2 months ago
JSON representation

🚀 Desenvolvimento de aplicação utilizando Golang + Postgres + Migrate + SQLC + UOW + GraphQL

Awesome Lists containing this project

README

          

# Curso - FullCyle [Go Expert]
## Módulo [Unit of Work]

[Migrate](https://github.com/golang-migrate/migrate)
[SQLC](https://sqlc.dev/)

### Criando migration
`migrate create -ext=sql -dir=sql/migrations -seq init`

### Executando migration
`migrate --path=sql/migrations -database "mysql://root:root@tcp(localhost:3306)/courses" -verbose up`

### Gerando package com sqlc
`brew install sqlc`
`sqlc generate`