bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.19k stars 1.21k forks source link

how to add transaction? #1

Closed v8labx closed 7 years ago

v8labx commented 7 years ago

i am new web developer, i don't know how to add transaction in the example。

sorry, my english is poor.

bxcodec commented 7 years ago

Hi @v8labx For transaction is depend on your DB. Is it your DB supported this.

For example MySql already support Transaction, you could read here

For controlling the transaction, it must done in repository layer. 😄

Thanks,