« Session::getDefaultSchema
Session::getSchemas »

Session::getSchema

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

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

説明

public function mysql_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
)
関連キーワード:
スキーマ   Session   mysql   xdevapi   getSchema   schema   Schema   session   addressbook   getDefaultSchema   getSchemas   information   available   データベース   getSession   mysqlx   user   password   localhost   print
関連する関数・ページ:
mysql-xdevapi-session.getschemas   mysql-xdevapi-session.getdefaultschema   mysql-xdevapi-schemaobject.getschema   mysql-xdevapi-schema.getsession   mysql-xdevapi-session.dropschema   class.mysql-xdevapi-session