forked from longbridgeapp/gorm-sharding
-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support logging sharding stQuery (#164)
<!-- Make sure these boxes checked before submitting your pull request. For significant changes, please open an issue to make an agreement on an implementation design/plan first before starting it. --> - [x] Do only one thing - [x] Non breaking API changes - [x] Tested ### What did this pull request do? support logging sharding sql ### User Case Description We use go-gorm/sharding to split large tables and record every SQL query in our log system for quick bug fixes. However, currently, with go-gorm/sharding, the GORM logger only prints the original SQL and does not print the sharded SQL.
- Loading branch information
Showing
2 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters