Add component metadata YAML for Postgres binding (#2802)
Signed-off-by: Yash Nisar <yashnisar@microsoft.com> Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
parent
a7ac906757
commit
1df2980aee
|
@ -0,0 +1,39 @@
|
|||
# yaml-language-server: $schema=../../../component-metadata-schema.json
|
||||
schemaVersion: v1
|
||||
type: bindings
|
||||
name: postgres
|
||||
version: v1
|
||||
status: stable
|
||||
title: "PostgreSQL"
|
||||
urls:
|
||||
- title: Reference
|
||||
url: https://docs.dapr.io/reference/components-reference/supported-bindings/postgres/
|
||||
capabilities: []
|
||||
binding:
|
||||
output: true
|
||||
input: false
|
||||
operations:
|
||||
- name: exec
|
||||
description: "The exec operation can be used for DDL operations (like table creation), as well as INSERT, UPDATE, DELETE operations which return only metadata (e.g. number of affected rows)."
|
||||
- name: query
|
||||
description: "The query operation is used for SELECT statements, which return both the metadata and the retrieved data in a form of an array of row values."
|
||||
- name: close
|
||||
description: "The close operation can be used to explicitly close the DB connection and return it to the pool. This operation doesn't have any response."
|
||||
authenticationProfiles:
|
||||
- title: "Connection string"
|
||||
description: "Authenticate using a Connection String."
|
||||
metadata:
|
||||
- name: url
|
||||
required: true
|
||||
sensitive: true
|
||||
bindings:
|
||||
input: false
|
||||
output: true
|
||||
description: "Connection string for PostgreSQL."
|
||||
url:
|
||||
title: More details
|
||||
url: https://docs.dapr.io/reference/components-reference/supported-bindings/postgres/#url-format
|
||||
example: |
|
||||
"user=dapr password=secret host=dapr.example.com port=5432 dbname=dapr sslmode=verify-ca"
|
||||
or "postgres://dapr:secret@dapr.example.com:5432/dapr?sslmode=verify-ca"
|
||||
type: string
|
Loading…
Reference in New Issue