Lodol Docs

PostgreSQL

API actions for the PostgreSQL integration.

PostgreSQL

Query PostgreSQL databases with table exploration, CRUD operations, and custom SQL.


Delete rows

Delete rows from a PostgreSQL table that match filters.

Parameters

ParameterTypeRequiredDescription
tablestringYesTable containing the rows to delete.
matchobjectYesKey/value pairs to match rows (equality filters).
schemastringNoSchema containing the table (defaults to public).

Response

{
  "rows": [
    {}
  ]
}

Insert a row

Insert a record into a PostgreSQL table and return it.

Parameters

ParameterTypeRequiredDescription
tablestringYesTable to insert into.
recordobjectYesJSON object representing the row to insert.
schemastringNoSchema containing the table (defaults to public).

Response

{
  "record": {}
}

List columns for a table

Fetch column names and data types for a PostgreSQL table.

Parameters

ParameterTypeRequiredDescription
tablestringYesTable name to inspect.
schemastringNoSchema containing the table (defaults to public).

Response

{
  "columns": [
    {}
  ]
}

List tables in a schema

Retrieve the tables available in a PostgreSQL schema.

Parameters

ParameterTypeRequiredDescription
schemastringNoSchema name to query (defaults to public).

Response

{
  "tables": [
    {}
  ]
}

Run custom SQL

Execute a custom SQL query with optional parameters.

Parameters

ParameterTypeRequiredDescription
querystringYesSQL query to execute.
parametersarrayNoOptional ordered parameters for the SQL query.

Response

{
  "result": [
    {}
  ]
}

Select rows

Select rows from a PostgreSQL table with optional filters and limits.

Parameters

ParameterTypeRequiredDescription
tablestringYesTable name to query.
columnsarrayNoOptional list of column names to return.
filtersobjectNoOptional equality filters as key/value pairs.
limitnumberNoMaximum number of rows to return.
schemastringNoSchema containing the table (defaults to public).

Response

{
  "rows": [
    {}
  ]
}

Update rows

Update rows in a PostgreSQL table that match filters.

Parameters

ParameterTypeRequiredDescription
tablestringYesTable containing the rows to update.
matchobjectYesKey/value pairs to match rows (equality filters).
updatesobjectYesFields to update on matching rows.
schemastringNoSchema containing the table (defaults to public).

Response

{
  "rows": [
    {}
  ]
}

On this page