Flow PHP

BulkData

Read onlyYes
FinalYes

Methods

__construct()  : mixed
columns()  : Columns
count()  : int
rows()  : array<int, array<string, mixed>>
Example:.
sqlRows()  : array<int, array<string, mixed>>
Example:.
toSqlParameters()  : array<string, mixed>
Example:.
toSqlPlaceholders()  : string

Methods

__construct()

public __construct(array<int, array<string, mixed>> $rows) : mixed
Parameters
$rows : array<int, array<string, mixed>>

count()

public count() : int
Return values
int

rows()

Example:.

public rows() : array<int, array<string, mixed>>

[ ['id' => 1, 'name' => 'some name'], ['id' => 2, 'name' => 'other name'], ]

Return values
array<int, array<string, mixed>>

sqlRows()

Example:.

public sqlRows() : array<int, array<string, mixed>>

[ ['id_0' => 1, 'name_0' => 'some name'], ['id_1' => 2, 'name_1' => 'other name'], ]

Return values
array<int, array<string, mixed>>

toSqlParameters()

Example:.

public toSqlParameters(TableDefinition $table) : array<string, mixed>

[ 'id_0' => 1, 'name_0' => 'some name', 'id_1' => 2, 'name_1' => 'other name', ]

Parameters
$table : TableDefinition
Return values
array<string, mixed>

toSqlPlaceholders()

public toSqlPlaceholders() : string
Return values
string

It returns a string for SQL bulk insert query, eg: (:id_0, :name_0, :title_0), (:id_1, :name_1, :title_1), (:id_2, :name_2, :title_2)


        
On this page

Search results