Session::getSchema

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

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

説明

public 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
)
add a note add a note

User Contributed Notes 1 note

up
0
jcastro at eftec dot cl
5 years ago
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.
To Top