Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
41 lines (31 sloc) 1003 Bytes

Plugin PostgreSQL

Connects to a given PostgreSQL server and runs a list of queries.

Configuration

Build Settings options

  • pgsql - All child properties are required.
    • host [string, optional, default: '127.0.0.1'] - PostgreSQL host.
    • port [int, optional, default: 5432] - PostgreSQL port.
    • dbname [string, optional] - PostgreSQL database name.
    • options [array, optional] - Additional PDO connection options ('PDO::ATTR_*').
    • user [string] - PostgreSQL username.
    • password [string] - PostgreSQL password.

Plugin options

  • queries [array, optional, default: empty array] - Array of queries.

Examples

build_settings:
    pgsql:
        host:     'localhost'
        user:     'testuser'
        password: '12345678'

setup:
    pgsql:
        queries:
            - "CREATE DATABASE my_app_test;"

complete:
    pgsql:
        queries:
            - "DROP DATABASE my_app_test;"
You can’t perform that action at this time.