-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add a :TIMING command to toggle performance timing display on/off during an interactive session.
Use Case
- Enable/disable timing without restarting sqlcmd
- Temporarily check performance for specific queries
- Better interactive debugging workflow
Proposed Syntax
:TIMING ON
SELECT * FROM users
GO
-- Shows timing info
:TIMING OFF
SELECT * FROM orders
GO
-- No timing info shownRelationship to Existing Features
- Acts as a runtime toggle for what
-pflag enables at startup - Complements
:PERFTRACEwhich redirects timing output to a file -pflag would set initial state,:TIMINGallows changing it
Implementation Notes
- Simple boolean toggle in the Sqlcmd struct
- Modify GO command to check the toggle state
- Minimal code change - leverages existing timing infrastructure
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request