Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support logging sharding stQuery #164

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Conversation

GaleHuang
Copy link

  • Do only one thing
  • Non breaking API changes
  • 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.

@jinzhu jinzhu merged commit 59c3209 into go-gorm:main Jul 18, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants