Class Schema
Representation of a database table schema.
- ICanBoogie\ActiveRecord\Schema implements ArrayAccess, IteratorAggregate uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
protected
|
|
protected
array|string|null
|
|
protected
array
|
|
protected
array
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
#
offsetSet( string $column_id, string|array|
Adds a column to the schema. |
public
|
|
public
ArrayIterator
|
|
public
array
|
Properties summary
protected
|
$columns
|
#
[]
|
Magic properties
public read-only
|
$columns
The columns of the schema. |
public read-only
array
|
$indexes
The indexes of the schema. |
public read-only
array
|
$unique_indexes
The unique indexes of the schema. |
public read-only
array|string
|
$primary
The primary key of the schema. The primary key is an array if it uses multiple columns. |