PgsqlSchema
extends CPgsqlSchema
in package
Table of Contents
Methods
- __construct() : mixed
- createTable() : mixed
- getColumnType() : string
- Adds support for replacing default arguments.
- getCompositePrimaryKey() : string
- Get composite primary key definition.
Methods
__construct()
public
__construct(mixed $conn) : mixed
Parameters
- $conn : mixed
createTable()
public
createTable(mixed $table, mixed $columns[, mixed $options = null ]) : mixed
Parameters
- $table : mixed
- $columns : mixed
- $options : mixed = null
getColumnType()
Adds support for replacing default arguments.
public
getColumnType(string $type) : string
Parameters
- $type : string
Return values
stringgetCompositePrimaryKey()
Get composite primary key definition.
public
getCompositePrimaryKey(string $table, array<string|int, mixed> $columns) : string
CONSTRAINT prefix_assessments_pkey PRIMARY KEY (id,language)
Parameters
- $table : string
- $columns : array<string|int, mixed>