final class PostgreSqlSchemaParser
    implements SchemaParserInterface

Regex-based parser for PostgreSQL CREATE TABLE statements.

Handles PostgreSQL-specific features:

  • SERIAL/BIGSERIAL/SMALLSERIAL auto-incrementing types
  • Schema-qualified names (e.g., public.users)
  • PostgreSQL-specific types (UUID, JSONB, BYTEA, INET, TIMESTAMPTZ, etc.)
  • Array types (INT[], TEXT[])
  • CONSTRAINT syntax

Methods§

public function parse(string $createTableSql): TableSchema

Parses the supplied declaration into its normalized representation.

Parameters

$createTableSqlstring
Test cases 112
Called from 1
Calls 10

Test cases 120§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 111
Other tests reaching this symbol 9

Relations§

Instantiated in 2
Method calls 1
Type declarations 2