-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement query \timing
command for local repl
#1903
Conversation
#[clap(long, default_value = "false", hide = true)] | ||
pub timing: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could also not be hidden, but I didn't feel like it was worth extending the existing cli args just with this.
@@ -226,6 +233,7 @@ impl LocalSession { | |||
self.opts.mode, | |||
self.opts.max_width, | |||
self.opts.max_rows, | |||
now, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means only ExecutionResult::Query
statements will be timed, so for now no DDL/DML timing info.
utils.get_customer_ds() | ||
utils.get_orders_ds() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for fixing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Just a minor change to add time units.
Co-authored-by: Vaibhav Rabber <[email protected]>
\timing
command\timing
command for local repl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! Fixed up the commit message, otherwise seems good.
Implement a \timing command in analogy with the one in psql: