Download the PHP package keboola/provisioning-client without Composer
On this page you can find all versions of the php package keboola/provisioning-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keboola/provisioning-client
More information about keboola/provisioning-client
Files in keboola/provisioning-client
Package provisioning-client
Short Description Keboola Provisioning Client
License MIT
Informations about the package provisioning-client
Keboola Provisioning Client
Get Credentials from Provisioning API.
Usage
Getting Credentials
If you have already an instance of Storage API client in $storageApi
, then you can get credentials to transformation database with the following call:
First argument to Client
constructor is database backend, which may be either snowflake
, mysql
or redshift-workspace
. The $credentials
variable above will contain the following structure:
Resetting Credentials
Resetting credentials is useful when you want to clean up the working schema. Resetting credentials will drop the entire schema and create a new empty one. Resetting credentials does not delete the credentials themselves - i.e. password and user name may remain the same. If you have already an instance of Storage API client in $storageApi
, then you can get credentials to transformation database with the following call:
Installation
Library is available as composer package. To start using composer in your project follow these steps:
Install composer
Create composer.json file in your project root folder:
Install package:
Add autoloader in your bootstrap script:
Read more in Composer documentation
Development
Preparation
-
Create
.env
file and fill the missing info - Build Docker image
Tests Execution
Run tests with following command.
Please note, for running Docker (RStudio / Jupyter) tests, you need to have async job queue processing running or
run the provisioning:devel:poll-jobs
command of the provisioning-bundle.
License
MIT licensed, see LICENSE file.