(沒有可用的版本資訊,可能只在 Git 中)
SchemaObject::getSchema — 取得 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 )