protected function MySQLiSource::_fetchValue in Backup and Migrate 8.4
Return the first field of the first result of a query.
Parameters
string $query A SQL query.:
Return value
null|object
Throws
\Exception
1 call to MySQLiSource::_fetchValue()
- MySQLiSource::_getTableCreateSQL in lib/
backup_migrate_core/ src/ Source/ MySQLiSource.php - Get the sql for the structure of the given table.
File
- lib/
backup_migrate_core/ src/ Source/ MySQLiSource.php, line 479
Class
- MySQLiSource
- Class MySQLiSource.
Namespace
BackupMigrate\Core\SourceCode
protected function _fetchValue($query) {
$result = $this
->_fetchAssoc($query);
return reset($result);
}