Skip to main content

Datasets And Data Connections

Data connections and datasets are separate on purpose.

A data connection describes how Flow Steward reaches a source inside one workspace. A dataset describes which part of that source is safe and useful for projects and workflows.

This lets a workspace have several projects without giving every project the same data access. For example, a client workspace can have one CRM database connection, then separate datasets for the CRM project, public website project, and reporting workflow.

Scope model​

ObjectScopeWhy it matters
Data connectionWorkspaceStores endpoint, environment, credentials, health, and schema metadata for a source.
DatasetWorkspace, then availability modeExposes selected resources and columns from a connection.
Project dataset bindingProjectControls which specific projects can use a dataset when it is not workspace-wide.
Workflow dataset_query stepWorkflow/jobQueries the approved dataset during execution.

Dataset availability has two modes:

  • All workspace projects makes the dataset available to every project in the workspace.
  • Specific projects only lets you select the projects that may use the dataset.

A project cannot attach a dataset from another workspace. A dataset's workspace cannot be changed after creation; create a new dataset in the target workspace when the data boundary changes.

Install a dataset connector​

Dataset connectors come from extensions. The first bundled dataset connector surface wraps Google MCP Toolbox database prebuilts.

If the UI says no connectors are installed, install or enable an extension that exposes dataset connectors before creating data connections.

Add a data connection​

Data Connections page with workspace-scoped connection records and status

Synthetic data-connection records. Visible status is fixture state, not a live production connectivity test.

Add data connection dialog with workspace, connector, name, environment, description, and tag fields

The fixture has no installed dataset connector, so Create connection is unavailable. No connection was created.

  1. Open Registry.
  2. Open Data Connections.
  3. Choose New Connection.
  4. Select the workspace.
  5. Select a connector, such as PostgreSQL, MySQL, SQLite, BigQuery, MongoDB, Neo4j, Redis, or another available prebuilt.
  6. Enter a display name and environment.
  7. Add host, port, user, database, and query parameters.
  8. Enter the password. It is stored through secret references.
  9. Save the connection.
  10. Test the connection.
  11. Introspect the connection to capture schema metadata.

Connections cannot be deleted while datasets depend on them.

Create a dataset​

Datasets page with workspace ownership, availability, and dataset records

The dataset list in the isolated synthetic workspace.

Create dataset dialog with ownership, availability, connection, project assignment, schema, read-only, and enabled controls

The form exposes dataset scope and schema controls, but the fixture reports no installed dataset connector. No dataset was created or introspected.

  1. Open Registry.
  2. Open Datasets.
  3. Choose New Dataset.
  4. Enter a display name and description.
  5. Select the workspace owner.
  6. Choose availability:
    • All workspace projects for broad shared datasets.
    • Specific projects only for tighter access.
  7. Select a data connection.
  8. Click Introspect schema.
  9. Select only the tables, resources, and columns that should be exposed.
  10. Save the dataset.

Start with a narrow resource selection. You can widen access later after the workflow proves what it actually needs.

Use All workspace projects for genuinely shared reference data. Use Specific projects only for customer data, production data, or data that should be visible only to one delivery target.

Attach datasets to a project​

  1. Open the project.
  2. Open the Datasets tab.
  3. Select available datasets.
  4. Save project datasets.

Workspace-wide datasets are available to all projects in the workspace. Specific-project datasets are available only where they are explicitly linked. Datasets from other workspaces are intentionally unavailable.

Create and verify a saved query​

Dataset detail editing requires an administrator.

  1. Open the dataset detail page and its Saved queries tab.
  2. Create a stable query ID and parameterized SQL template. Use declared parameters; do not concatenate user text into SQL.
  3. Define input and output schemas, including required/null/array types.
  4. Validate the query before enabling it.
  5. Preview with a small non-sensitive parameter set and compare the returned columns/types with the output schema.
  6. Enable the query only after validation and preview succeed.
  7. Bind the dataset to the intended project, then select the saved query from a dataset_query step and map its bounded result.

An unknown parameter or schema/type mismatch should fail validation. Missing project/dataset scope should fail authorization. Preview rows are bounded and do not promise that an unrestricted export is safe or supported.

Use datasets in workflows​

Use a dataset_query workflow step when workflow logic needs structured data. The step should query a dataset, not the raw connection. That keeps project access and resource scope enforceable.

Typical flow:

  1. Add a data connection.
  2. Introspect the source.
  3. Create a dataset with a narrow resource scope.
  4. Attach the dataset to a project.
  5. Add a dataset_query step to the workflow.
  6. Run a test job and review logs/results.

Use datasets for workflow-time data access. Assign relevant workspace data connections in project settings for internal project context. This does not restore the removed project KB page, repository index, or schema-index service. See Project Context.