go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
264 stars 56 forks source link

feat: support logging sharding stQuery #164

Closed GaleHuang closed 2 months ago

GaleHuang commented 2 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.