Writes data to pgsql Database.
{
"db": {
"host": "HOST",
"port": "PORT",
"database": "DATABASE",
"user": "USERNAME",
"password": "PASSWORD",
"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.
- Clone from repository:
git clone [email protected]:keboola/db-writer-pgsql.git
- Change directory:
cd db-writer-pgsql
- Install composer dependencies:
docker-compose run --rm dev composer install
- Develop
- Run tests:
docker-compose run --rm dev composer tests
or all checks:docker-compose run --rm dev composer ci