You are here

public function DataFileSystem::parseSQLFile in Forena Reports 8

Parameters

$object:

Return value

array Extract data from an SQL file.

1 call to DataFileSystem::parseSQLFile()
DataFileSystem::extractMetaData in src/File/DataFileSystem.php
Should load cache data based on that.

File

src/File/DataFileSystem.php, line 75

Class

DataFileSystem

Namespace

Drupal\forena\File

Code

public function parseSQLFile($object) {
  $file = file_get_contents($object->file);
  $src = $this->dmSvc
    ->parseSQL($file);
  $metaData = [
    'provider' => $this->source,
    'name' => $this->source . '/' . $this->base_name,
    'access' => @$src['access'],
    'options' => @$src['options'],
  ];
  return $metaData;
}