array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'mysql-xdevapi-schemaobject.getschema.php', 1 => 'SchemaObject::getSchema', ), 'up' => array ( 0 => 'class.mysql-xdevapi-schemaobject.php', 1 => 'mysql_xdevapi\\SchemaObject', ), 'prev' => array ( 0 => 'class.mysql-xdevapi-schemaobject.php', 1 => 'mysql_xdevapi\\SchemaObject', ), 'next' => array ( 0 => 'class.mysql-xdevapi-session.php', 1 => 'mysql_xdevapi\\Session', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysql_xdevapi/mysql_xdevapi/schemaobject/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)
SchemaObject::getSchema — Get schema object
Used by other objects to retrieve a schema object.
Cette fonction ne contient aucun paramètre.
The current Schema object.
Exemple #1 mysql_xdevapi\Session::getSchema() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schema = $session->getSchema("addressbook");
print_r($schema);
Résultat de l'exemple ci-dessus est similaire à :
mysql_xdevapi\Schema Object ( [name] => addressbook )