final class PostgreSqlTypeMapper
    implements TypeMapperInterface

Type mapper for PostgreSQL column types.

Maps PostgreSQL-specific types to appropriate Faker-generated values:

  • Standard SQL types (INTEGER, TEXT, BOOLEAN, etc.)
  • PostgreSQL-specific types (UUID, JSONB, BYTEA, INET, CIDR, MACADDR, etc.)
  • SERIAL types (mapped to INTEGER with autoIncrement)
  • Array types
  • Timestamp with/without time zone

Methods§

public function generate(Generator $faker, ColumnDefinition $column): mixed

Generates fixture data according to the supplied schema or plan.

Parameters

$fakerGenerator
$columnColumnDefinition

Returns

mixed
Test cases 138
Calls 3

Test cases 145§

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

Dedicated tests 138
Other tests reaching this symbol 7

Relations§

Instantiated in 1