protected function checkSqLiteDatabaseSize($connection)
    {
        try {
            $path = realpath(DB::connection($connection)->getConfig('database'));
            if ($path !== false) {
                return filesize($path);
            }
        } catch (Exception $e) {
            $this->eye->logger()->debug('Error during sqLite DB size check', ['exception' => $e->getMessage(), 'connection' => $connection]);
        }

        return -1;
    }