The syntaxis is
$schema = $session->getSchema( "storedb" ); // it returns a Schema object
Where $session is a Session object and storedb is the name of the schema.(No version information available, might only be in Git)
Session::getSchema — Получает новый объект схемы
Новый объект Schema для указанного имени схемы.
schema_nameИмя схемы (базы данных), для которой нужно получить объект Schema.
Объект Schema.
Пример #1 Пример использования mysql_xdevapi\Session::getSchema()
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schema = $session->getSchema("addressbook");
print_r($schema);Вывод приведённого примера будет похож на:
mysql_xdevapi\Schema Object
(
[name] => addressbook
)
The syntaxis is
$schema = $session->getSchema( "storedb" ); // it returns a Schema object
Where $session is a Session object and storedb is the name of the schema.