Skip to content

PostgreSQL

Query, insert and update data from PostgreSQL.

Type: postgresql/v1


Connections

Version: 1

null

Properties

NameLabelTypeControl TypeDescriptionRequired
usernameUsernameSTRINGTEXTtrue
passwordPasswordSTRINGPASSWORDtrue

Actions

Query

Name: query

Execute an SQL query.

Properties

NameLabelTypeControl TypeDescriptionRequired
queryQuerySTRINGTEXTThe raw SQL query to execute. You can use :property1 and :property2 in conjunction with parameters.true
parametersParametersOBJECT
Properties {}
OBJECT_BUILDERThe list of properties which should be used as query parameters.null

JSON Example

{
"label" : "Query",
"name" : "query",
"parameters" : {
"query" : "",
"parameters" : { }
},
"type" : "postgresql/v1/query"
}

Insert

Name: insert

Insert rows in database.

Properties

NameLabelTypeControl TypeDescriptionRequired
schemaSchemaSTRINGTEXTName of the schema the table belongs to.true
tableTableSTRINGTEXTName of the table in which to insert data to.true
columnsFieldsARRAY
Items [STRING]
ARRAY_BUILDERThe list of the table field names where corresponding values would be inserted.null
rowsValuesARRAY
Items [{}]
ARRAY_BUILDERList of field values for corresponding field namesnull

JSON Example

{
"label" : "Insert",
"name" : "insert",
"parameters" : {
"schema" : "",
"table" : "",
"columns" : [ "" ],
"rows" : [ { } ]
},
"type" : "postgresql/v1/insert"
}

Update

Name: update

Update rows in database.

Properties

NameLabelTypeControl TypeDescriptionRequired
schemaSchemaSTRINGTEXTName of the schema the table belongs to.true
tableTableSTRINGTEXTName of the table in which to update data in.true
columnsFieldsARRAY
Items [STRING]
ARRAY_BUILDERThe list of the table field names whose values would be updated.null
updateKeyUpdate KeySTRINGTEXTThe field name used as criteria to decide which rows in the database should be updated.null
rowsValuesARRAY
Items [{}]
ARRAY_BUILDERList of field values for corresponding field names.null

JSON Example

{
"label" : "Update",
"name" : "update",
"parameters" : {
"schema" : "",
"table" : "",
"columns" : [ "" ],
"updateKey" : "",
"rows" : [ { } ]
},
"type" : "postgresql/v1/update"
}

Delete

Name: delete

Delete rows from database.

Properties

NameLabelTypeControl TypeDescriptionRequired
schemaSchemaSTRINGTEXTName of the schema the table belongs to.true
tableTableSTRINGTEXTName of the table in which to update data in.true
deleteKeyDelete KeySTRINGTEXTName of the field which decides which rows in the database should be deleted.null
rowsCriteria ValuesARRAY
Items [{}]
ARRAY_BUILDERList of values that are used to test delete key.null

JSON Example

{
"label" : "Delete",
"name" : "delete",
"parameters" : {
"schema" : "",
"table" : "",
"deleteKey" : "",
"rows" : [ { } ]
},
"type" : "postgresql/v1/delete"
}

Execute

Name: execute

Execute an SQL DML or DML statement.

Properties

NameLabelTypeControl TypeDescriptionRequired
executeExecuteSTRINGTEXTThe raw DML or DDL statement to execute. You can use :property1 and :property2 in conjunction with parameters.true
columnsFields to selectARRAY
Items [{}]
ARRAY_BUILDERList of fields to select from.null
parametersParametersOBJECT
Properties {}
OBJECT_BUILDERThe list of values which should be used to replace corresponding criteria parameters.null

JSON Example

{
"label" : "Execute",
"name" : "execute",
"parameters" : {
"execute" : "",
"columns" : [ { } ],
"parameters" : { }
},
"type" : "postgresql/v1/execute"
}