Skip to main content

Select

PostgreSQL Plugin – Select

Summary (SEO Meta Description):
The PostgreSQL Select action in WeHub retrieves rows from a PostgreSQL database table.
Supports filtering, ordering, limits, and schema-based mapping for seamless data queries in workflows.


Overview

The Select action allows workflows to query data from a PostgreSQL database table.
It supports conditions, ordering, limits, and offsets to fetch structured data efficiently.

This action is commonly used to fetch rows for processing, reporting, or validating workflow data.

Typical Use Cases:

  • Fetch patient records from a clinical database
  • Retrieve financial transactions with filters and sorting
  • Load reference data for enrichment in workflows
  • Paginate large queries using limit and offset

⚙️ Action: Select

Configuration Options:

FieldTypeDescription
LabelStringCustom name for the action.
Select ConnectionEnumChoose or create a PostgreSQL connection.
Table NameEnumSelect the table to query from.
ColumnsListSpecify which columns to return (default: *).
ConditionStringSQL WHERE condition to filter rows.
OrderStringORDER BY clause for sorting results.
LimitNumberLimit number of rows returned.
OffsetNumberSkip a number of rows (for pagination).
Inputs (Manual)MixedMap input parameters manually with types (NUMBER, STRING, BOOLEAN, etc.).
Inputs SchemaSchemaUse schema-based mapping for query inputs.
Outputs SchemaSchemaMap query results into a defined schema.

FAQ

Q: Can I run parameterized queries with Select?
A: Yes. Use Manual Inputs or Schema mapping to safely parameterize queries.

Q: Does Select support large datasets?
A: Yes, but it’s recommended to use Limit and Offset for pagination.

Q: Can I join multiple tables?
A: No. The Select action is limited to a single table. Use the Custom Action for complex queries.


Keywords: WeHub PostgreSQL Plugin, PostgreSQL Select, Database Query Workflow, SQL Integration in WeHub