-
Notifications
You must be signed in to change notification settings - Fork 99
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(csharp/src/Client): parse custom properties from connection string #2352
feat(csharp/src/Client): parse custom properties from connection string #2352
Conversation
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.
I had a question about the use of ConnectionTimeout in this scenario and a suggestion on maybe a different choice for the parsing exception.
CommandTimeoutValue = ConnectionStringParser.ParseTimeoutValue(paramValue); | ||
break; | ||
case ConnectionStringKeywords.ConnectionTimeout: | ||
this.connectionTimeoutValue = ConnectionStringParser.ParseTimeoutValue(paramValue); |
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.
Since this has no effect on the underlying ADBC driver, is this to help synchronize the value with the driver?
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.
You are right in that it doesn't do much. The initial driver value would get set when the properties are passed in for the driver. However, ConnectionTimeout is only a get call, and it would differ from the actual value that was passed in. That said, maybe this could be better if you have an idea.
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 made a slight tweak to it so that it will set the property on the driver if it is passed in and it will also have a matching get value in that case.
@davidhcoe - Everything else looks good to me. |
Co-authored-by: Bruce Irschick <[email protected]>
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.
Thanks!
Follow up to #2312 to add parsing of the timeout values and other custom properties like StructBehavior and DecimalBehavior from the connection string.