MySQLInsertOptions implements InsertOptions
Read onlyYes
FinalYes
Interfaces
Properties
- $skipConflicts : bool|null
- $updateColumns : array<string|int, mixed>
- $upsert : bool|null
Methods
- __construct() : mixed
- fromArray() : InsertOptions
- new() : self
- skipConflicts() : self
- updateColumns() : self
- upsert() : self
Properties
$skipConflicts
public
bool|null
$skipConflicts
= null
$updateColumns
public
array<string|int, mixed>
$updateColumns
= []
$upsert
public
bool|null
$upsert
= null
Methods
__construct()
public
__construct([null|bool $skipConflicts = null ][, null|bool $upsert = null ][, array<string|int, string> $updateColumns = [] ]) : mixed
Parameters
- $skipConflicts : null|bool = null
- $upsert : null|bool = null
- $updateColumns : array<string|int, string> = []
fromArray()
public
static fromArray(array<string|int, mixed> $options) : InsertOptions
Parameters
- $options : array<string|int, mixed>
Return values
InsertOptionsnew()
public
static new() : self
Return values
selfskipConflicts()
public
skipConflicts([bool $skip = true ]) : self
Parameters
- $skip : bool = true
Return values
selfupdateColumns()
public
updateColumns(array<string|int, string> $updateColumns) : self
Parameters
- $updateColumns : array<string|int, string>
Return values
selfupsert()
public
upsert([bool $upsert = true ]) : self
Parameters
- $upsert : bool = true