Package com.inductiveautomation.ignition.designer.ai.datasource


@NullMarked package com.inductiveautomation.ignition.designer.ai.datasource
Designer AI prompt support for browsing SQL datasource schema — datasources, tables, and columns.

Data flow

DatasourceSchemaUtils wraps the DatasourceRpc calls that list datasources, tables, and columns, and renders each result as a PromptAssist.Option for a popup. AbstractSchemaPromptAssist builds on that to browse a single, already-known datasource's schema; subclasses supply the active datasource name (see NamedQuerySchemaPromptAssist, QueryBrowserSchemaPromptAssist in their respective editor packages). DatasourcePromptAssist instead browses across every datasource on the gateway, for editors that let the user pick the datasource inline in the reference.

Runtime boundaries

Every fetch failure is wrapped in DatasourceFetchException and translated to an empty result by the caller — a datasource that is offline or slow degrades the popup to "no results" rather than surfacing an error dialog. Table and column lists are cached for the lifetime of the owning prompt assist instance; the cache never invalidates within a session.

Extension points

Datasource/table/column token syntax and schema rendering belong here so Designer AI features share the same interpretation of @<table> / @<datasource>.<table> references. The agent-facing counterpart, DatasourceTools, lives in com.inductiveautomation.ignition.designer.ai.tool alongside the other Designer AI tool bundles. Editor-specific datasource resolution (which datasource is "active") stays in the consuming editor packages.