Exemplo n.º 1
0
 public function tearDown()
 {
     $sapiClient = new \Keboola\StorageApi\Client(array("token" => PROVISIONING_API_TOKEN));
     if ($sapiClient->bucketExists("in.c-redshift")) {
         foreach ($sapiClient->listTables("in.c-redshift") as $table) {
             $sapiClient->dropTable($table["id"]);
         }
         $sapiClient->dropBucket("in.c-redshift");
     }
     if ($sapiClient->bucketExists("out.c-redshift")) {
         foreach ($sapiClient->listTables("out.c-redshift") as $table) {
             $sapiClient->dropTable($table["id"]);
         }
         $sapiClient->dropBucket("out.c-redshift");
     }
 }