PostgreSQL

The World's Most Advanced Open Source Relational Database

Go to site
Explore
/
Apps
/
PostgreSQL

PostgreSQL API Integrations

Build and run workflows using the PostgreSQL API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

Assuming you want a few paragraphs on what you can do with the PostgreSQL API:

The following examples demonstrate some of the things that can be done with the PostgreSQL API:

  • Developing a custom storage engine for PostgreSQL
  • Adding a new data type to PostgreSQL
  • Creating a new function for PostgreSQL
  • Building a graphical user interface for PostgreSQL
  • And much more!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = defineComponent({
  props: {
    postgresql: {
      type: "app",
      app: "postgresql",
    }
  },
  async run({steps, $}) {
    const { Client } = require('pg')
    
    const { host, user, password, port, database } = this.postgresql.$auth
    
    const client = new Client({
      host,
      database,
      user,
      password,
      port,
    })
    
    await client.connect()
    this.results = (await client.query("SELECT NOW()")).rows
    await client.end()
  },
})

Choose an API to Connect with PostgreSQL API

1
-
12
of
1000+
apps by most popular

Delete Row(s) with PostgreSQL API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + PostgreSQL
 
Try it
Send Message (Advanced) with Discord Webhook API on New Column from PostgreSQL API
PostgreSQL + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Column from PostgreSQL API
PostgreSQL + Google Sheets
 
Try it
Delete Row(s) with PostgreSQL API on New Item in Feed from RSS API
RSS + PostgreSQL
 
Try it
Delete Row(s) with PostgreSQL API on New Message from Discord API
Discord + PostgreSQL
 
Try it
New Column from the PostgreSQL API

Emit new event when a new column is added to a table. See Docs

 
Try it
New or Updated Row from the PostgreSQL API

Emit new event when a row is added or modified. See Docs

 
Try it
New Row from the PostgreSQL API

Emit new event when a new row is added to a table. See Docs

 
Try it
New Row Custom Query from the PostgreSQL API

Emit new event when new rows are returned from a custom query that you provide. See Docs

 
Try it
New Table from the PostgreSQL API

Emit new event when a new table is added to the database. See Docs

 
Try it
Delete Row(s) with the PostgreSQL API

Deletes a row or rows from a table. See Docs

 
Try it
Execute Custom Query with the PostgreSQL API

Executes a custom query you provide. See Docs

 
Try it
Find Row with the PostgreSQL API

Finds a row in a table via a lookup column. See Docs

 
Try it
Find Row With Custom Query with the PostgreSQL API

Finds a row in a table via a custom query. See Docs

 
Try it
Insert Row with the PostgreSQL API

Adds a new row. See Docs

 
Try it

Authentication

PostgreSQL uses API keys for authentication. When you connect your PostgreSQL account, Pipedream securely stores the keys so you can easily authenticate to PostgreSQL APIs in both code and no-code steps.

Before you connect to your PostgreSQL database from Pipedream, please make sure your database is either:

  1. Accessible from the public internet (You may need to add a firewall rule on 0.0.0.0/0 on port 3306), or

  2. Accessible from an SSH server that you route PostgreSQL requests through

After that, enter the following values:

  • host: The hostname or IP address of your PostgreSQL server
  • port: 3306, unless you run PostgreSQL on a different port
  • username: The account username to log in
  • password: The account password to log in
  • database: The name of the PostgreSQL database to run queries against