Skip to content

feat(rust/driver_manager): reconcile with C++ driver manager#4121

Open
lidavidm wants to merge 3 commits intoapache:mainfrom
lidavidm:gh-4089
Open

feat(rust/driver_manager): reconcile with C++ driver manager#4121
lidavidm wants to merge 3 commits intoapache:mainfrom
lidavidm:gh-4089

Conversation

@lidavidm
Copy link
Member

Closes #4089.

@lidavidm lidavidm force-pushed the gh-4089 branch 3 times, most recently from 41380e7 to 0a70967 Compare March 19, 2026 06:06
@lidavidm lidavidm marked this pull request as ready for review March 19, 2026 09:44
@lidavidm lidavidm requested a review from wjones127 as a code owner March 19, 2026 09:44
works see :doc:`how_manager`.

There are two ways to pass connection options to driver managers:
There are two ways to pass driver options through the driver manager:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"driver and database options" ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to "database options" since that's technically correct.


# The version is required.
profile_version = 1
# It is optional to provide the driver.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we mention that if the driver is not provided here it must be set as an option manually?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified

Comment on lines +579 to +582
This can be done via the ``additional_profile_search_path_list`` option. It
must be set before ``AdbcDatabaseInit()``. The value of this option is an
OS-specific delimited list (``:`` on Unix, ``;`` on Windows), or ``NULL`` to
clear.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like this is being added to the rust driver manager code to check for this option, shouldn't we add that? Or am I missing it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Rust code doesn't have special intercepted options in the first place (like "profile" or even "uri"), so I don't think it makes sense to add this to Rust, either.

Copy link
Member

@zeroshade zeroshade left a 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 other than the couple of questions above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rust/driver_manager: ensure behavior matches C++

2 participants