smallnest / gen

Converts a database into gorm structs and RESTful api
Apache License 2.0
1.43k stars 234 forks source link

what is the usage of `LogSql` in DAO #156

Closed Gnosnay closed 3 years ago

Gnosnay commented 3 years ago

There is nowhere call this self defined func LogSql. I wanna know how to equip it? thx!

smallnest commented 3 years ago

It is used to output sql for debugging. If you don't need it, keep it nil, otherwise implement it with your logger lib