Flow PHP

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

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
throws
SchemaMismatchException
Return values
self

appendRecords()

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
throws
SchemaMismatchException
Return values
self

appendRows()

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
throws
SchemaMismatchException
Return values
self

appendTake()

public appendTake(Rows $rows, array<int, int> $indices) : self
Parameters
$rows : Rows
$indices : array<int, int>
Return values
self
On this page

Search results