(沒有版本資訊,可能僅在 Git 中)
Session::getSchemas — 取得綱要
此函式沒有參數。
包含代表 session 可用的所有綱要的物件陣列。
範例 #1 mysql_xdevapi\Session::getSchemas() 範例
<?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 ) ...