<?php

require __DIR__ . '/ExportHarness.php';

$reflection = new ReflectionClass(ExportHarness::class);
$harness = $reflection->newInstanceWithoutConstructor();
$harness->dialect = 'mysql';
$harness->root = (string)getenv('POC_APP_ROOT');
$connect = $reflection->getMethod('connect');
$connect->setAccessible(true);
foreach ([false => 'store', true => 'ai'] as $role => $label) {
    $connection = $connect->invoke($harness, (bool)$role);
    echo $label, '_schema=', $connection->query('SELECT DATABASE()')->fetchColumn(), PHP_EOL;
}
