Closed tc-hib closed 3 years ago
Hello,
Sometimes it would be useful to receive messages from the server.
BACKUP DATABASE
STATS
If we want to show this information in some UI, we need a way to handle it, we can't have it in logs only.
I propose that we add a new specific type of query argument, like ReturnStatus. That type would be a callback function that would take a mssql.Error.
ReturnStatus
mssql.Error
Here is an example of how it could be implemented: https://github.com/denisenkom/go-mssqldb/compare/master...tc-hib:pr-message-handler?expand=1
I forgot there was #221 already.
@kardianos is there any reason why you didn't add support for sqlexp.ReturnMessage in go-mssqldb?
sqlexp.ReturnMessage
Hello,
Sometimes it would be useful to receive messages from the server.
BACKUP DATABASE
withSTATS
option, we can track its progressIf we want to show this information in some UI, we need a way to handle it, we can't have it in logs only.
I propose that we add a new specific type of query argument, like
ReturnStatus
. That type would be a callback function that would take amssql.Error
.Here is an example of how it could be implemented: https://github.com/denisenkom/go-mssqldb/compare/master...tc-hib:pr-message-handler?expand=1