tachibana22 opened a new pull request, #100:
URL: https://github.com/apache/incubator-seata-go-samples/pull/100

   **What this PR does**:
   - Removes all literal hardcoded database connection strings (DSNs) from 
`at/gorm`, `at/grpc`, `xa/gorm`, and `tcc/fence` sample applications.
   - Replaces them with centralized configuration helpers from the `util` 
package (`util.GetAtMySqlDb`, `util.GetXAMySqlDb`, and `util.GetTccMySqlDb`) to 
support dynamic environment variable injection (`MYSQL_HOST`, `MYSQL_PORT`, 
etc.).
   - Restores the complete definition of `util.GetTccMySqlDb` utilizing the 
standard mysql driver to fix TCC fence dependencies.
   
   **Which issue(s) this PR fixes**:
   Fixes #99
   
   **The related PR of seata-go**:
   N/A
   
   **You should pay attention to items below to ensure your pr passes our ci 
test**:
   We do not merge pr with ci tests failed
   
   - [x] All ut passed (run 'go test ./...' in project root)
   - [x] After go-fmt ed , run 'go fmt project' using goland.
   - [x] Golangci-lint passed, run 'sudo golangci-lint run' in project root.
   - [x] Your new-created file needs to have [apache 
license](https://raw.githubusercontent.com/dubbogo/resources/master/tools/license/license.txt)
 at the top, like other existed file does.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to