Session::getSchema

(No version information available, might only be in Git)

Session::getSchema新しいスキーマオブジェクトを取得する

説明

publicmysql_xdevapi\Session::getSchema(string$schema_name): mysql_xdevapi\Schema

与えられたスキーマ名に対応する新しいスキーマオブジェクトを返します。

パラメータ

schema_name

スキーマオブジェクトを取得するためのスキーマ(データベース) の名前

戻り値

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 )
To Top