Skip to content

fix: accept vendor-specific statistic keys - #293

Open
fornwall wants to merge 1 commit into
adbc-drivers:mainfrom
fornwall:private-range
Open

fix: accept vendor-specific statistic keys#293
fornwall wants to merge 1 commit into
adbc-drivers:mainfrom
fornwall:private-range

Conversation

@fornwall

Copy link
Copy Markdown
Contributor

Allow drivers to return implementation-specific statistics outside the reserved [0, 1024) range.

From AdbcConnectionGetStatistics():

Values in [0, 1024) are reserved for ADBC. Other values are for implementation-specific statistics.
[..]
To get driver-specific statistic names, use AdbcConnectionGetStatisticNames.

If implementation-specific keys exists they now get validated against AdbcConnectionGetStatisticNames.

Allow drivers to return implementation-specific statistics outside the
ADBC-reserved [0, 1024) range.

Verify those keys against GetStatisticNames so conforming extensions
work without weakening validation.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
@fornwall
fornwall requested a review from lidavidm as a code owner August 30, 2026 12:06
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.

1 participant