symphony-org / frost

Frost
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Plugin: postgres query plugin #20

Open EncodePanda opened 5 years ago

EncodePanda commented 5 years ago

Suggest plugin name

postgres:query

Overview

Allow calling any arbitrary SQL queries on a postgres database and rendering result as table

Example usage

Input

```frost:postgres:query
query: select name, age from users
connection: host='db.example.domain.com' port=5432 dbname='postgres' user='postgres' password='adminadmin'

## Output
Provide desired output

```sql
select name, age from users
name age
john 31
kate 28