array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mysql-xdevapi-session.getschema.php', 1 => 'Session::getSchema', ), 'up' => array ( 0 => 'class.mysql-xdevapi-session.php', 1 => 'mysql_xdevapi\\Session', ), 'prev' => array ( 0 => 'mysql-xdevapi-session.getdefaultschema.php', 1 => 'Session::getDefaultSchema', ), 'next' => array ( 0 => 'mysql-xdevapi-session.getschemas.php', 1 => 'Session::getSchemas', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysql_xdevapi/mysql_xdevapi/session/getschema.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
Session::getSchema — Get a new schema object
A new Schema object for the provided schema name.
schema_name
Name of the schema (database) to fetch a Schema object for.
A Schema object.
示例 #1 mysql_xdevapi\Session::getSchema() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schema = $session->getSchema("addressbook");
print_r($schema);
以上示例的输出类似于:
mysql_xdevapi\Schema Object ( [name] => addressbook )