lidavidm commented on code in PR #5056:
URL: https://github.com/apache/arrow-adbc/pull/5056#discussion_r4688314879


##########
c/include/arrow-adbc/adbc.h:
##########
@@ -971,6 +971,37 @@ struct AdbcPartitions {
 
 /// @}
 
+/// \defgroup adbc-statement-action Vendor-Specific Actions (EXPERIMENTAL)
+/// A convention for drivers to expose vendor-specific actions to clients. For
+/// example, drivers may want to expose specific API requests or lower-level
+/// functionality that is not necessarily exposed via SQL.
+///
+/// To execute an action:
+///
+/// 1. Set the ADBC_ACTION option on a statement to the name of the action.
+/// 2. Optionally, call AdbcStatementGetParameterSchema to get the expected
+///    parameters for the action, or AdbcStatementExecuteSchema to get the
+///    expected result set schema.
+/// 3. If needed, bind parameters via AdbcStatementBind /
+///    AdbcStatementBindStream.
+/// 4. Execute the action via AdbcStatementExecuteQuery.
+/// 5. If a result set was produced, consume the returned ArrowArrayStream.
+///
+/// To enumerate available actions: this is currently undefined, pending the
+/// metadata collections proposal (apache/arrow-adbc#4400).
+///
+/// Drivers are not required to support actions. As of ADBC 1.1.0, this
+/// proposal is experimental and may be removed or changed in future revisions
+/// of the ADBC API.
+///

Review Comment:
   TODO: add example use cases/example flows to the header



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to