feat: implement -p flag for print statistics by dlevy-msft-sql · Pull Request #631 · microsoft/go-sqlcmd
This was referenced
Jan 25, 2026dlevy-msft-sql added a commit to dlevy-msft-sql/go-sqlcmd that referenced this pull request
Jan 25, 2026
dlevy-msft-sql
changed the title
Implement -p flag for print statistics
feat: implement -p flag for print statistics
Adds -p and -p1 flags to print execution statistics after each batch: - -p: Standard format with packet size, execution count, and timing - -p1: Colon-separated format for parsing (packetSize:batches:total:avg:rate) Uses new DefaultPacketSize constant (4096) instead of magic numbers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters