public function bootstrap(): Source
    {
        $connection = $this->getDatabaseConnection();

        $config = $this->config->get("database.connections.$connection");

        if (array_get($config, 'driver') !== 'mysql') {
            throw new InvalidArgumentException("Unsupported database driver [{$config['driver']}].");
        }

        return new Source(
            $this->getName(),
            array_get($config, 'database'),
            array_get($config, 'host'),
            array_get($config, 'username'),
            array_get($config, 'password')
        );
    }