protected function getStore(string $name = null): PDO
    {
        $name = $name ?? $this->app->config()['database']['default'];

        if (isset($this->stores[$name])) {
            return $this->stores[$name];
        }

        $config = $this->getStoreConfig($name);

        return $this->stores[$name] = $this->getStoreFromConfig($config);
    }