tomyeh / postgresql

Dart Postgresql database library.
https://quire.io
BSD 2-Clause "Simplified" License
15 stars 7 forks source link

Logger #19

Closed unger1984 closed 3 years ago

unger1984 commented 3 years ago

Added an optional parameter for connecting the logging function of SQL requests

await connect('postgres://user:password@localhost:5432/test',logger: print);
tomyeh commented 3 years ago

Sorry, I won't accept it. Logging SQL is for debugging application. I don't think it shall be put at driver level.

BTW, please don't change the code style in a pull request. It made the viewer hard to know what you really changed. I know the style doesn't follow the standard, but it is personal preference and the code is written by xxgreg mostly.