Appearance
Testing Is Documentation
tests/Database/Query/CommentTest.php
Uses
<?php use Leevel\Kernel\Utils\Api; use Tests\Database\DatabaseTestCase as TestCase;
public function testBaseUse(): void { $connect = $this->createDatabaseConnectMock(); $sql = <<<'eot' [ "\/*FORCE_MASTER*\/ SELECT `test_query`.* FROM `test_query` WHERE `test_query`.`id` = :test_query_id", { "test_query_id": [ 5 ] }, false ] eot; self::assertSame( $sql, $this->varJsonSql( $connect ->table('test_query') ->comment('FORCE_MASTER') ->where('id', '=', 5) ->findAll(), $connect ) ); }
Query lang.comment
Testing Is Documentation
tests/Database/Query/CommentTest.php
Uses
comment 基础用法