Results of 1 - 10 of about 34 for getCollection (0.001 sec.)
- Schema::getCollection — スキーマからコレクションを取得する | PHP 8.3 16616
- Schema::getCollection (No version information available, might only be in Git) Schema::getCollection — スキーマからコレクションを取得する 説明 public function mysql_xdevapi\Schema::getCollection ( string $name ): mysql_xdevapi\Collection ス
... 得するコレクションの名前 戻り値 選択したコレクションを指す Collection オブジェクトを返します。 例 例1 mysql_xdevapi\Schema::getCollection() の例 <?php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE ... xecute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); // ... $trees = $schema -> getCollection ( "trees" ); var_dump ( $trees ); 上の例の出力は、 たとえば以下のようになります。 object(mysql_xdevapi\Collection)#3 (1) { ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.getcollection.html
- Schema クラス | PHP 8.3 9794
- Schema クラス (PECL mysql-xdevapi >= 8.0.11) はじめに クラス概要 class mysql_xdevapi\Schema implements mysql_xdevapi\DatabaseObject { /* プロパティ */ public $ name ; /* メソッド */ public function createCollection ( string $name ): mysql_x
... public function dropCollection ( string $collection_name ): bool public function existsInDatabase (): bool public function getCollection ( string $name ): mysql_xdevapi\Collection public function getCollectionAsTable ( string $name ): mysql_xdevapi\Table publ ... ic function getCollections (): array public function getName (): string public function getSession (): mysql_xdevapi\Session public function getTabl ... pCollection — スキーマからコレクションを削除する Schema::existsInDatabase — データベースに存在するかをチェックする Schema::getCollection — スキーマからコレクションを取得する Schema::getCollectionAsTable — コレクションをテーブルオブジェクトとして取得する Schem ...
-
https://man.mtool.work/php/8.3/class.mysql-xdevapi-schema.html
- Session::commit — トランザクションをコミットする | PHP 8.3 8212
- Session::commit (PHP 4 >= 4.4.0, PHP 5, PHP 7, PHP 8) Session::commit — トランザクションをコミットする 説明 public function mysql_xdevapi\Session::commit (): Object トランザクションをコミットします。 パラメータ この関数にはパラメータはありま
... = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $collection = $session -> getSchema ( "addressbook" )-> getCollection ( "friends" ); $session -> startTransaction (); $collection -> add ( '{"John":42, "Sam":33}' )-> execute (); $savepoint = ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-session.commit.html
- Session::startTransaction — トランザクションを開始する | PHP 8.3 8212
- Session::startTransaction (No version information available, might only be in Git) Session::startTransaction — トランザクションを開始する 説明 public function mysql_xdevapi\Session::startTransaction (): void 新しいトランザクションを開始しま
... = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $collection = $session -> getSchema ( "addressbook" )-> getCollection ( "friends" ); $session -> startTransaction (); $collection -> add ( '{"test1":1, "test2":2}' )-> execute (); $savepoint = ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-session.starttransaction.html
- Result::getAffectedItemsCount — 影響を受けた行数を得る | PHP 8.3 8036
- Result::getAffectedItemsCount (No version information available, might only be in Git) Result::getAffectedItemsCount — 影響を受けた行数を得る 説明 public function mysql_xdevapi\Result::getAffectedItemsCount (): int 直近の操作によって、影響を
... ma = $session -> getSchema ( "addressbook" ); $create = $schema -> createCollection ( "people" ); $collection = $schema -> getCollection ( "people" ); $result = $collection -> add ( '{"name": "Wilma", "age": 23, "job": "Teacher"}' )-> execute (); var_dump ( $ ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-result.getaffecteditemscount.html
- Session::releaseSavepoint — 設定されたセーブポイントをリリースする | PHP 8.3 8036
- Session::releaseSavepoint (No version information available, might only be in Git) Session::releaseSavepoint — 設定されたセーブポイントをリリースする 説明 public function mysql_xdevapi\Session::releaseSavepoint ( string $name ): void 以前設
... = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $collection = $session -> getSchema ( "addressbook" )-> getCollection ( "friends" ); $session -> startTransaction (); $collection -> add ( '{"test1":1, "test2":2}' )-> execute (); $savepoint = ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-session.releasesavepoint.html
- Session::rollback — トランザクションをロールバックする | PHP 8.3 8036
- Session::rollback (No version information available, might only be in Git) Session::rollback — トランザクションをロールバックする 説明 public function mysql_xdevapi\Session::rollback (): void トランザクションをロールバックします。 パラメータ
... = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $collection = $session -> getSchema ( "addressbook" )-> getCollection ( "names" ); $session -> startTransaction (); $collection -> add ( '{"test1":1, "test2":2}' )-> execute (); $savepoint = $ ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-session.rollback.html
- Session::rollbackTo — セーブポイントまでトランザクションをロールバックする | PH... 8036
- Session::rollbackTo (No version information available, might only be in Git) Session::rollbackTo — セーブポイントまでトランザクションをロールバックする 説明 public function mysql_xdevapi\Session::rollbackTo ( string $name ): void セーブポイ
... = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $collection = $session -> getSchema ( "addressbook" )-> getCollection ( "names" ); $session -> startTransaction (); $collection -> add ( '{"test1":1, "test2":2}' )-> execute (); $savepoint1 = ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-session.rollbackto.html
- Collection::count — ドキュメントの数を取得する | PHP 8.3 7860
- Collection::count (No version information available, might only be in Git) Collection::count — ドキュメントの数を取得する 説明 public function mysql_xdevapi\Collection::count (): int この機能は、 MySQL サーバーの現在のスキーマとコレクション
... ma = $session -> getSchema ( "addressbook" ); $create = $schema -> createCollection ( "people" ); $collection = $schema -> getCollection ( "people" ); $result = $collection -> add ( '{"name": "Bernie", "jobs": [ {"title":"Cat Herder","Salary":42000}, {"title" ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.count.html
- Collection::dropIndex — コレクションのインデックスを削除 | PHP 8.3 7860
- Collection::dropIndex (No version information available, might only be in Git) Collection::dropIndex — コレクションのインデックスを削除 説明 public function mysql_xdevapi\Collection::dropIndex ( string $index_name ): bool コレクションのイン
... ession -> getSchema ( "addressbook" ); $create = $schema -> createCollection ( "people" ); // ... $collection = $schema -> getCollection ( "people" ); $collection -> createIndex ( 'myindex' , '{"fields": [{"field": "$.name", "type": "TEXT(25)", "required": tr ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.dropindex.html