« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 55 for createCollection (0.005 sec.)
Schema::createCollection — スキーマにコレクションを追加する | PHP 8.3 15685
Schema::createCollection (No version information available, might only be in Git) Schema::createCollection — スキーマにコレクションを追加する 説明 public function mysql_xdevapi\Schema::createCollection ( string $name ): mysql_xdevapi\Collec ... ェクトを返します。 変更履歴 バージョン 説明 8.0.20 オプションの validate 引数が追加されました。 例 例1 mysql_xdevapi\Schema::createCollection() の例 <?php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE ... ( "CREATE TABLE food.fruit(name text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); print_r ( $schema -> gettables ()); print_r ( $schema -> getcollections ()); 上の例の出力は、 たとえば以下のよ ... t ( [name] => fruit ) ) Array ( [trees] => mysql_xdevapi\Collection Object ( [name] => trees ) ) 例2 mysql_xdevapi\Schema::createCollection() の例 <?php $collection = $schema -> createCollection ( "mycollection" , '{ "validation": { "level": "strict", "schema": ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.createcollection.html
The MongoDB\Driver\Command class | PHP 8.3 13423
The MongoDB\Driver\Command class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Command class is a value object that represents a database command. To provide Command Helpers the MongoDB\Driver\Command object should be composed. クラス概要 f ... ray | object $document , ? array $commandOptions = null ) } 例 例1 Composing MongoDB\Driver\Command to provide a helper to create collections <?php class CreateCollection { protected $cmd = array(); function __construct ( $collectionName ) { $this -> cmd [ "crea ... ionName () { return $this -> cmd [ "create" ]; } } $manager = new MongoDB\Driver\Manager ( "mongodb://localhost:27017" ); $createCollection = new CreateCollection ( "cappedCollection" ); $createCollection -> setCappedCollection ( 64 * 1024 ); try { $command = $c ... databaseName" , $command ); $response = $cursor -> toArray ()[ 0 ]; var_dump ( $response ); $collstats = [ "collstats" => $createCollection -> getCollectionName ()]; $cursor = $manager -> executeCommand ( "databaseName" , new MongoDB\Driver\Command ( $collstats ...
https://man.mtool.work/php/8.3/class.mongodb-driver-command.html
Schema::dropCollection — スキーマからコレクションを削除する | PHP 8.3 9047
Schema::dropCollection (No version information available, might only be in Git) Schema::dropCollection — スキーマからコレクションを削除する 説明 public function mysql_xdevapi\Schema::dropCollection ( string $collection_name ): bool 警告 この ... ( "CREATE TABLE food.fruit(name text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); $schema -> dropCollection ( "trees" ); $schema -> createCollection ( "buildings" ); print_r ( $schema -> gett ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.dropcollection.html
Schema クラス | PHP 8.3 8899
Schema クラス (PECL mysql-xdevapi >= 8.0.11) はじめに クラス概要 class mysql_xdevapi\Schema implements mysql_xdevapi\DatabaseObject { /* プロパティ */ public $ name ; /* メソッド */ public function createCollection ( string $name ): mysql_x ... api\Table public function getTables (): array } プロパティ name 目次 Schema::__construct — Schema のコンストラクタ Schema::createCollection — スキーマにコレクションを追加する Schema::dropCollection — スキーマからコレクションを削除する Schema::existsInDatabase — ...
https://man.mtool.work/php/8.3/class.mysql-xdevapi-schema.html
Collection::getName — コレクションの名前を得る | PHP 8.3 7539
Collection::getName (No version information available, might only be in Git) Collection::getName — コレクションの名前を得る 説明 public function mysql_xdevapi\Collection::getName (): string コレクションの名前を取得します。 パラメータ この関 ... "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $collection = $schema -> createCollection ( "people" ); // ... var_dump ( $collection -> getName ()); ?> 上の例の出力は、 たとえば以下のようになります。 string(6) " ...
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.getname.html
Collection::getSchema — スキーマオブジェクトを得る | PHP 8.3 7391
Collection::getSchema (No version information available, might only be in Git) Collection::getSchema — スキーマオブジェクトを得る 説明 public function mysql_xdevapi\Collection::getSchema (): Schema Object コレクションを含むスキーマオブジェク ... "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $collection = $schema -> createCollection ( "people" ); var_dump ( $collection -> getSchema ()); ?> 上の例の出力は、 たとえば以下のようになります。 object(mysql_xde ...
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.getschema.html
Result::getAffectedItemsCount — 影響を受けた行数を得る | PHP 8.3 7391
Result::getAffectedItemsCount (No version information available, might only be in Git) Result::getAffectedItemsCount — 影響を受けた行数を得る 説明 public function mysql_xdevapi\Result::getAffectedItemsCount (): int 直近の操作によって、影響を ... ql ( "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $create = $schema -> createCollection ( "people" ); $collection = $schema -> getCollection ( "people" ); $result = $collection -> add ( '{"name": "Wilma", "age" ...
https://man.mtool.work/php/8.3/mysql-xdevapi-result.getaffecteditemscount.html
Schema::__construct — Schema のコンストラクタ | PHP 8.3 7391
Schema::__construct (No version information available, might only be in Git) Schema::__construct — Schema のコンストラクタ 説明 private function mysql_xdevapi\Schema::__construct () スキーマオブジェクトは、スキーマ(データベース)への完全なア ... ( "CREATE TABLE food.fruit(name text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); print_r ( $schema -> gettables ()); print_r ( $schema -> getcollections ()); 上の例の出力は、 たとえば以下のよ ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.construct.html
Schema::getCollection — スキーマからコレクションを取得する | PHP 8.3 7391
Schema::getCollection (No version information available, might only be in Git) Schema::getCollection — スキーマからコレクションを取得する 説明 public function mysql_xdevapi\Schema::getCollection ( string $name ): mysql_xdevapi\Collection ス ... xecute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); // ... $trees = $schema -> getCollection ( "trees" ); var_dump ( $trees ); 上の例の出力は、 たとえば以下のよう ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.getcollection.html
Collection::__construct — Collection のコンストラクタ | PHP 8.3 7229
Collection::__construct (No version information available, might only be in Git) Collection::__construct — Collection のコンストラクタ 説明 private function mysql_xdevapi\Collection::__construct () コレクションオブジェクトを構築します。 パラ ... "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $collection = $schema -> createCollection ( "people" ); $result = $collection -> add ( '{"name": "Alfred", "age": 42, "job": "Butler"}' )-> execute (); // ユニークな ...
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.construct.html
PREV 1 2 3 4 5 6 NEXT