Actions
| Action | Category | Description | Params | Command Template | Flags |
|---|---|---|---|---|---|
query | info | Execute SQL query | db_host, db_name, sql | psql -h {db_host} -d {db_name} -c '{sql}' | |
3-layer compositionINTERFACE
#ActionDef & { name: "query", category: "info" }PROVIDER
command_template: "psql -h {db_host} -d {db_name} -c '{sql}'"
params: { db_host: from_field: "db_host", db_name: from_field: "db_name", sql: default: "" }
| |||||
db_list | info | List all databases | db_host | psql -h {db_host} -l | idempotent |
3-layer compositionINTERFACE
#ActionDef & { name: "db_list", category: "info" }PROVIDER
command_template: "psql -h {db_host} -l"
params: { db_host: from_field: "db_host" }
| |||||
Import
import "quicue.ca/template/postgresql/patterns"
actions: patterns.#upostgresqlRegistry
JSON-LD
{
"@id": "https://quicue.ca/project/quicue-postgresql",
"@type": "quicue:Provider",
"quicue:providerName": "postgresql",
"quicue:category": "database",
"quicue:actionCount": 10
}