男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

Schema::getCollections

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

Schema::getCollectionsGet all schema collections

說(shuō)明

public mysql_xdevapi\Schema::getCollections(): array

Fetch a list of collections for this schema.

參數

此函數沒(méi)有參數。

返回值

Array of all collections in this schema, where each array element value is a Collection object with the collection name as the key.

范例

示例 #1 mysql_xdevapi\Schema::getCollections() example

<?php
$session 
mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$session->sql("DROP DATABASE IF EXISTS addressbook")->execute();
$session->sql("CREATE DATABASE addressbook")->execute();

$schema  $session->getSchema("addressbook");
$collect $schema->createCollection("people");
$collect->add('{"name": "Fred",  "age": 21, "job": "Construction"}')->execute();
$collect->add('{"name": "Wilma", "age": 23, "job": "Teacher"}')->execute();

$collections $schema->getCollections();
var_dump($collections);
?>

以上例程的輸出類(lèi)似于:

array(1) {
  ["people"]=>
  object(mysql_xdevapi\Collection)#4 (1) {
    ["name"]=>
    string(6) "people"
  }
}
男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站