RowsBuilder
FinalYes
Methods
- __construct() : mixed
- appendFrom() : self
- A column sharing its definition with the target is copied physically; any other is refused unless its value matches the target definition as it is - views are never cast.
- appendRecords() : self
- One record or a list of them. A key the schema does not declare is refused at its row; a numeric-string key PHP turned into an int keeps its declared name, any other int key is named by its position (ColumnName).
- appendRows() : self
- appendTake() : self
- column() : ColumnBuilder
- count() : int
- finish() : Rows
Methods
__construct()
public
__construct(Schema $schema, Backend $backend) : mixed
Parameters
appendFrom()
A column sharing its definition with the target is copied physically; any other is refused unless its value matches the target definition as it is - views are never cast.
public
appendFrom(Rows $rows, int $i) : self
Parameters
- $rows : Rows
- $i : int
Tags
Return values
selfappendRecords()
One record or a list of them. A key the schema does not declare is refused at its row; a numeric-string key PHP turned into an int keeps its declared name, any other int key is named by its position (ColumnName).
public
appendRecords(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Tags
Return values
selfappendRows()
public
appendRows(array<int, array<string|int, mixed>> $rows) : self
Parameters
- $rows : array<int, array<string|int, mixed>>
-
name-keyed, or int-keyed for the positional names (ColumnName); a declared key a row lacks is null, or a missing column under NOT NULL; a key the schema lacks is ignored
Tags
Return values
selfappendTake()
public
appendTake(Rows $rows, array<int, int> $indices) : self
Parameters
- $rows : Rows
- $indices : array<int, int>
Return values
selfcolumn()
public
column(string $name) : ColumnBuilder
Parameters
- $name : string
Return values
ColumnBuildercount()
public
count() : int
Return values
intfinish()
public
finish() : Rows