- Clone the repository.
- Create
.env
file withAWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
. - Run
docker-compose build
.
- codesniffer:
docker-compose run --rm app composer phpcs
- static analysis:
docker-compose run --rm app composer phpstan
- unit tests:
docker-compose run --rm app composer tests
The configuration requires a db
node with the following properties:
host
: string (required) the hostname of the databaseport
: numeric (required)user
: string (required)database
: string (required)#password
: string (required)ssh
: array (optional, but if present, enabled, keys/public, user, and sshHost are required)enabled
: booleankeys
: array#private
: stringpublic
: string
user
stringsshHost
stringsshPort
string
There are 2 possible types of table extraction.
- A table defined by
schema
andtableName
, this option can also include a columns list. - A
query
which is the SQL SELECT statement to be executed to produce the result table.
The extraction has the following configuration options:
name
: string (required),query
: stirng (optional, but required if table not present)table
: array (optional, but required if table not present)tableName
: stringschema
: string
columns
: array of strings (only for table type configurations)outputTable
: string (required)incremental
: boolean (optional)primaryKey
: array of strings (optional)incrementalFetchingColumn
: string (optional)incrementalFetchingLimit
: integer (optional)
MIT licensed, see LICENSE file.