classPgSqlViewDefinitionParser
final class PgSqlViewDefinitionParser
View definition parser for PostgreSQL queries.
Methods§
public function fromQuery(string $query): ViewDefinitionBuilds a view definition from a query and the relations it references.
Parameters
$query | string |
Returns
Test cases 2
Called from 2
- method-call ZtdQuery\Platform\Postgres\Schema\PgSqlSchemaReflector::reflectViews() packages/ztd-query-postgres/src/Schema/PgSqlSchemaReflector.php:124
- method-call ZtdQuery\Platform\Postgres\Schema\View\PgSqlViewDefinitionParser::fromCreateStatement() packages/ztd-query-postgres/src/Schema/View/PgSqlViewDefinitionParser.php:38
Calls 5
- function-call
rtrimline 22 - function-call
trimline 22 - new ViewDefinition line 24
- method-call PgSqlSelectRelationParser::tableNames() line 24
- new PgSqlSelectRelationParser line 24
public function fromCreateStatement(string $sql): ?ViewDefinitionReads a CREATE VIEW statement and preserves its query definition.
Parameters
$sql | string |
Returns
Test cases 1
Calls 5
- static-call SqlTokenStream::tokenize() line 32
- static-call PgSqlLexerProfile::create() line 32
- function-call
substrline 36 - function-call
trimline 37 - method-call PgSqlViewDefinitionParser::fromQuery() line 38
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.