Subject | Native OO API |
---|---|
Author | vasiliy.yashkov |
Post date | 2018-08-31T14:08:58Z |
Hi!
I continue to implement new native OO API interfaces in jaybird, but I
ran into the problem of choosing between old and new interface when
connecting. I can see, wire protocol has methods to identify protocol
version, but native protocol doesn't have. How to determine when to use
the new version of the interface, and when the old version? I see options:
- parsing a string returned by the isc_get_client_version to identify
server version;
- using try...catch block;
- or use a new interface as default.
Are there any other views?
BR,
Vasiliy Yashkov
I continue to implement new native OO API interfaces in jaybird, but I
ran into the problem of choosing between old and new interface when
connecting. I can see, wire protocol has methods to identify protocol
version, but native protocol doesn't have. How to determine when to use
the new version of the interface, and when the old version? I see options:
- parsing a string returned by the isc_get_client_version to identify
server version;
- using try...catch block;
- or use a new interface as default.
Are there any other views?
BR,
Vasiliy Yashkov