-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add read only version property #146
Comments
Are you saying that the Another way to accomplish this is to use the command that displays properties, namely What are the pros and cons of that approach? Are there any other read-only properties that we might be interested in? |
No. The only thing it does is printing current version. About reinitialization I mean that now the only way to know version is restart which leads to reinitialization.
I could imagine a list of plugged in command handler classes and application class.
Well the only cons of properties usage I see is |
OK, so it would seem that What do you think we should do? I am happy with either approach. I just hope we're not on a slippery slope to other commands (say |
Going to ask the question - does version need to be exposed in an interactive manner? Assuming sqlline is command line invoked, can't a second shell (ssh, tmux, screen, etc) be opened to check the version of sqlline? If sqlline was upgraded behind the scenes after opening sqlline that would be a weird scenario. I'm not sure of other command line tools that expose the version after you are already inside them after the initialization. Some don't even print it during the initialization. |
SQLPlus does what I am suggesting: https://stackoverflow.com/questions/9021581/how-to-know-sqlplus-version-from-inside-sqlplus |
Ah thats a nice example. Thanks |
Agree. It is not good to make such precedents. I do not have strict requirements to have it as |
Fixed in c222391; thanks @snuyanzin! |
Sometimes it is more convenient to have
!version
command than to restart sqlline to see startup message with version and then to reinitialize connections.The text was updated successfully, but these errors were encountered: