final class SqliteTypeMapper
    implements TypeMapperInterface

Type mapper for SQLite based on type affinity rules.

SQLite uses "type affinity" where the declared type is mapped to one of:

  • INTEGER: INT, INTEGER, TINYINT, SMALLINT, MEDIUMINT, BIGINT, INT2, INT8
  • TEXT: CHAR, VARCHAR, TEXT, CLOB
  • REAL: REAL, DOUBLE, FLOAT
  • BLOB: BLOB or no type
  • NUMERIC: DECIMAL, BOOLEAN, DATE, DATETIME, NUMERIC

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 110
Calls 3

Test cases 117§

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

Dedicated tests 109
Other tests reaching this symbol 8

Relations§

Instantiated in 1