Writes data to Redshift Database.
{
"db": {
"host": "HOST",
"port": "PORT",
"database": "DATABASE",
"user": "USERNAME",
"password": "PASSWORD",
"schema": "SCHEMA"
"ssh": {
"enabled": true,
"keys": {
"private": "ENCRYPTED_PRIVATE_SSH_KEY",
"public": "PUBLIC_SSH_KEY"
},
"sshHost": "PROXY_HOSTNAME"
}
},
"tables": [
{
"tableId": "simple",
"dbName": "simple",
"export": true,
"incremental": true,
"primaryKey": ["id"],
"items": [
{
"name": "id",
"dbName": "id",
"type": "int",
"size": null,
"nullable": null,
"default": null
},
{
"name": "name",
"dbName": "name",
"type": "nvarchar",
"size": 255,
"nullable": null,
"default": null
},
{
"name": "glasses",
"dbName": "glasses",
"type": "nvarchar",
"size": 255,
"nullable": null,
"default": null
}
]
}
]
}
App is developed on localhost using TDD.
git clone git@github.com:keboola/db-writer-redshift.git
cd db-writer-redshift
.env
file from .env.template
and fill in values for environment variables:
cp .env.template .env
docker-compose run --rm tests
docker-compose run --rm ./vendor/bin/phpunit --filter testWrongColumnOrder
MIT licensed, see LICENSE file.