public function resolve($connectionName)
    {
        $config = $this->databaseConfigs[$connectionName];
        $driver = $config['driver'];

        return $this->factories[$driver]->build($config);
    }