array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mysql-xdevapi-session.getschemas.php', 1 => 'Session::getSchemas', 2 => 'Get the schemas', ), 'up' => array ( 0 => 'class.mysql-xdevapi-session.php', 1 => 'mysql_xdevapi\\Session', ), 'prev' => array ( 0 => 'mysql-xdevapi-session.getschema.php', 1 => 'Session::getSchema', ), 'next' => array ( 0 => 'mysql-xdevapi-session.getserverversion.php', 1 => 'Session::getServerVersion', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysql_xdevapi/mysql_xdevapi/session/getschemas.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(No version information available, might only be in Git)
Session::getSchemas — Get the schemas
Get schema objects for all schemas available to the session.
此函数没有参数。
An array containing objects that represent all of the schemas available to the session.
示例 #1 mysql_xdevapi\Session::getSchemas() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schemas = $session->getSchemas();
print_r($schemas);
以上示例的输出类似于:
Array ( [0] => mysql_xdevapi\Schema Object ( [name] => addressbook ) [1] => mysql_xdevapi\Schema Object ( [name] => information_schema ) ...