mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Expanded example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345451 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6b00f72656
commit
cc6781c087
1 changed files with 32 additions and 0 deletions
|
@ -121,6 +121,12 @@ if ($session === NULL) {
|
|||
die("Connection could not be established");
|
||||
}
|
||||
|
||||
$schemas = $session->getSchemas();
|
||||
print_r($schemas);
|
||||
|
||||
$mysql_version = $session->getServerVersion();
|
||||
print_r($mysql_version);
|
||||
|
||||
var_dump($collection->find("name = 'Alfred'")->execute()->fetchOne());
|
||||
?>
|
||||
]]>
|
||||
|
@ -128,6 +134,32 @@ var_dump($collection->find("name = 'Alfred'")->execute()->fetchOne());
|
|||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[0] => mysql_xdevapi\Schema Object
|
||||
(
|
||||
[name] => helloworld
|
||||
)
|
||||
[1] => mysql_xdevapi\Schema Object
|
||||
(
|
||||
[name] => information_schema
|
||||
)
|
||||
[2] => mysql_xdevapi\Schema Object
|
||||
(
|
||||
[name] => mysql
|
||||
)
|
||||
[3] => mysql_xdevapi\Schema Object
|
||||
(
|
||||
[name] => performance_schema
|
||||
)
|
||||
[4] => mysql_xdevapi\Schema Object
|
||||
(
|
||||
[name] => sys
|
||||
)
|
||||
)
|
||||
|
||||
80012
|
||||
|
||||
array(4) {
|
||||
["_id"]=>
|
||||
string(28) "00005ad66abf0001000400000003"
|
||||
|
|
Loading…
Reference in a new issue