It basically depends on who (the driver or the "main" library) has ownership of the cursor's state. I guess the main library should have and set it appropriately depending on the return code from cursor_open/close_cursor. At that point setOpened can be made private in Cursor and removed from the "interface" in ICursor, since the drivers will no longer be using it.
It basically depends on who (the driver or the "main" library) has ownership of the cursor's state. I guess the main library should have and set it appropriately depending on the return code from
cursor_open
/close_cursor
. At that pointsetOpened
can be made private inCursor
and removed from the "interface" inICursor
, since the drivers will no longer be using it.Originally posted by @mridoni in https://github.com/mridoni/gixsql/issues/110#issuecomment-1226890954