Skip to main content

Module command

Module command 

Source
Expand description

Generic Driver Command API.

Commands are the extension point for driver-specific operations. The host uses DriverCommandDefinition for discovery and CommandResult as the transport-neutral execution result.

Structs§

CommandResult
Transport-neutral result returned by a Driver Command.
DriverCommandDefinition
Metadata exposed by a driver for a command it supports.
DriverCommandMetadata
Optional command metadata. Missing fields deserialize to workflow/UI-enabled defaults.

Enums§

CommandAccessLevel
Access level required by a Driver Command.
CommandCategory
High-level grouping used by Workflow UI and docs.

Functions§

check_command_access
Reject commands that need a higher access level than the caller was granted.
execute_command_definition
Build the standard SQL execute command definition.
execute_command_definition_for
execute with a driver-specific description and sql field title.
query_command_definition
Build the standard SQL query command definition.
query_command_definition_for
query with a driver-specific description and sql field title.
query_only_command_definitions
Query-only drivers (writes are not exposed as commands).
required_access_level
Classify a command from explicit metadata, then permissions / command id.
statement_command_definitions
Query + execute for non-SQL drivers that still use the sql input field.
validate_command_input
Validate the generic structural part of a command’s JSON Schema. Driver-specific semantic validation remains inside the driver.