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
Namespace
Drupal\forena\FileCode
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;
}