https://github.com/aleroxac/goexpert-uow
goexpert-uow
https://github.com/aleroxac/goexpert-uow
fullcycle go goexpert golang unit-of-work uow
Last synced: 9 months ago
JSON representation
goexpert-uow
- Host: GitHub
- URL: https://github.com/aleroxac/goexpert-uow
- Owner: aleroxac
- Created: 2024-04-17T12:14:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T12:17:29.000Z (about 2 years ago)
- Last Synced: 2024-04-17T13:35:18.440Z (about 2 years ago)
- Topics: fullcycle, go, goexpert, golang, unit-of-work, uow
- Language: Go
- Homepage: https://github.com/aleroxac/goexpert-uow
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goexpert-uow
## Modo de uso
``` shell
make compose_up
make generate
make test
```
## UOW - Unit of work
```
### Example of a unit of work
{
BEGIN
Transaction_1 -> Repository_1
Transaction_2 -> Repository_2
COMMIT / ROLLBACK
}
### flow
Repositories > UOW > getRespository > Respository(Transaction)
### Unit of work functions
Register
Get
Do
CommitOrRollback
Rollback
UnRegister
```