' . '' . $table->getName() . ' | ||
' . '' . $columnLabel . '' . ' | ' . '' . '' . strtolower($column->getType()->getName()) . '' . ' | ' . ''; $primaryKey = $table->getPrimaryKey(); if ($primaryKey !== null && in_array($column->getName(), $primaryKey->getColumns(), true)) { $label .= "\xe2\x9c\xb7"; } $label .= ' |
* $result = $sm->tryMethod('dropView', 'view_name');
*
*
* @deprecated
*
* @return mixed
*/
public function tryMethod()
{
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/4897',
'AbstractSchemaManager::tryMethod() is deprecated.'
);
$args = func_get_args();
$method = $args[0];
unset($args[0]);
$args = array_values($args);
$callback = [$this, $method];
assert(is_callable($callback));
try {
return call_user_func_array($callback, $args);
} catch (Throwable $e) {
return false;
}
}
/**
* Lists the available databases for this connection.
*
* @return string[]
*
* @throws Exception
*/
public function listDatabases()
{
$sql = $this->_platform->getListDatabasesSQL();
$databases = $this->_conn->fetchAllAssociative($sql);
return $this->_getPortableDatabasesList($databases);
}
/**
* Returns a list of all namespaces in the current database.
*
* @deprecated Use {@see listSchemaNames()} instead.
*
* @return string[]
*
* @throws Exception
*/
public function listNamespaceNames()
{
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/issues/4503',
'AbstractSchemaManager::listNamespaceNames() is deprecated,'
. ' use AbstractSchemaManager::listSchemaNames() instead.'
);
$sql = $this->_platform->getListNamespacesSQL();
$namespaces = $this->_conn->fetchAllAssociative($sql);
return $this->getPortableNamespacesList($namespaces);
}
/**
* Returns a list of the names of all schemata in the current database.
*
* @return list