plugin
@statelyjs/arrow - Plugin Implementation
This module provides the Arrow plugin for Stately, enabling integration with Apache Arrow-based data sources. The package includes both a schema plugin for runtime configuration and a UI plugin for component registration.
Overview
The Arrow plugin enables:
- Connection management for various data sources (databases, object stores)
- Catalog browsing and schema exploration
- Streaming SQL query execution with Apache Arrow
- Real-time data visualization
Usage
Schema Plugin
Add the schema plugin to your Stately configuration:
UI Plugin
Add the UI plugin to register Arrow components and operations:
Type Aliases
ArrowOptions
ArrowOptions =
DefineOptions<{api?: {pathPrefix?:string; };navigation?: {routes?:UiNavigationOptions["routes"]; }; }>
Defined in: arrow/src/plugin.ts:85
Configuration options for the Arrow plugin.
Example
ArrowPlugin
ArrowPlugin =
DefinePlugin<typeofARROW_PLUGIN_NAME,ArrowNodeMap,ArrowTypes,ArrowData,ArrowUtils>
Defined in: arrow/src/plugin.ts:108
Arrow schema plugin type definition.
This type augments the Stately schema runtime with Arrow-specific node types, data structures, and utilities.
See
arrowPlugin - Factory function to create this plugin
ArrowUiPlugin
ArrowUiPlugin =
DefineUiPlugin<typeofARROW_PLUGIN_NAME,ArrowPaths, typeofARROW_OPERATIONS,ArrowUiUtils,ArrowOptions>
Defined in: arrow/src/plugin.ts:163
Arrow UI plugin type definition.
This type defines the shape of the Arrow UI plugin, including its API operations, configuration options, and utilities.
See
arrowUiPlugin - Factory function to create this plugin
ArrowUiUtils
ArrowUiUtils =
DefineUiUtils
Defined in: arrow/src/plugin.ts:153
Arrow UI plugin utilities type.
ArrowUtils
ArrowUtils =
Record<string,never>
Defined in: arrow/src/plugin.ts:98
Arrow plugin utilities.
Currently empty but reserved for future utility functions that may be added to the Arrow plugin runtime.
Variables
ARROW_PLUGIN_NAME
constARROW_PLUGIN_NAME:"arrow"
Defined in: arrow/src/plugin.ts:72
arrowRoutes
constarrowRoutes:RouteOption
Defined in: arrow/src/plugin.ts:117
Default navigation route configuration for the Arrow plugin.
arrowUiPlugin
constarrowUiPlugin:UiPluginFactoryFn<ArrowUiPlugin>
Defined in: arrow/src/plugin.ts:196
Creates the Arrow UI plugin factory.
This plugin registers Arrow-specific components, API operations, and navigation routes into the Stately UI runtime. It provides typed access to Arrow API endpoints through React Query hooks.
Example
Functions
arrowPlugin()
arrowPlugin<
S>():PluginFactory<S>
Defined in: arrow/src/plugin.ts:138
Creates the Arrow schema plugin factory.
This plugin registers Arrow-specific types and utilities into the Stately
schema runtime. It should be used with createStately().plugin().
Type Parameters
S
S extends Schemas<any, any> = Schemas
The schemas type, defaults to base Schemas
Returns
A plugin factory function that augments the runtime