go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
275 stars 60 forks source link

feat: support logging sharding stQuery #164

Closed GaleHuang closed 4 months ago

GaleHuang commented 4 months ago

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.