PHP 8.5.0 Beta 3 available for testing

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

User Contributed Notes 1 note

up
0
jcastro at eftec dot cl ยถ
7 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