Writes data to Microsoft SQL Server 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": "dbo.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 git@github.com:keboola/db-writer-mssql.git
- Change directory:
cd db-writer-mssql
- Install dependencies:
composer install --no-interaction
- Run docker-compose, which will trigger phpunit:
docker-compose run app