xxxx日本护士丰满hd|亚洲av日韩av无码av欧美av|精品国产污污网站在线看免费|日日摸日日碰夜夜爽久久|国产一区二区亚洲精品

Schema::getCollection

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

Schema::getCollectionGet collection from schema

說(shuō)明

public mysql_xdevapi\Schema::getCollection(string $name): mysql_xdevapi\Collection

Get a collection from the schema.

參數

name

Collection name to retrieve.

返回值

The Collection object for the selected collection.

范例

示例 #1 Schema::getCollection example

<?php
$session 
mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$session->sql("DROP DATABASE IF EXISTS food")->execute();
$session->sql("CREATE DATABASE food")->execute();

$schema $session->getSchema("food");
$schema->createCollection("trees");

// ...

$trees $schema->getCollection("trees");

var_dump($trees);

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

object(mysql_xdevapi\Collection)#3 (1) {
  ["name"]=>
  string(5) "trees"
}
xxxx日本护士丰满hd|亚洲av日韩av无码av欧美av|精品国产污污网站在线看免费|日日摸日日碰夜夜爽久久|国产一区二区亚洲精品