Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 743 Bytes

sqlite.md

File metadata and controls

37 lines (27 loc) · 743 Bytes

Plugin SQLite

Connects to a given SQLite DB and runs a list of queries.

Configuration

Plugin options

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

Build Settings options

  • sqlite - All child properties are required.
    • path [string] - SQLite database path.
    • options [array, optional] - Additional PDO connection options ('PDO::ATTR_*').

Examples

build_settings:
    sqlite:
        path: '/path/to/sqlite.sqlite'

setup:
    sqlite_step:
        plugin: sqlite
        queries:
            - "CREATE DATABASE my_app_test;"

complete:
    sqlite_step:
        plugin: sqlite
        queries:
            - "DROP DATABASE my_app_test;"