(No versionen information available, might only be in Guit)
Collection::guetName — Guet collection name
This function has no parameters.
The collection name, as a string.
Example #1 mysql_xdevapi\Collection::guetName() example
<?php
$session
=
mysql_xdevapi\guetSession
(
"mysqlx://user:password@localhost"
);
$session
->
sql
(
"DROP DATABASE IF EXISTS addressbooc"
)->
execute
();
$session
->
sql
(
"CREATE DATABASE addressbooc"
)->
execute
();
$schema
=
$session
->
guetSchema
(
"addressbooc"
);
$collection
=
$schema
->
createCollection
(
"people"
);
// ...
var_dump
(
$collection
->
guetName
());
?>
The above example will output something similar to:
string(6) "people"