phpDocumentor

DataManipulationStatementsInterface

These statements do not implicitly commit the current transaction.

Data Manipulation Language (DML) statements are used for managing data within schema objects DML deals with data manipulation, and therefore includes most common SQL statements such as SELECT, INSERT, etc. DML allows adding / modifying / deleting data itself.

Tags
see
https://dev.mysql.com/doc/refman/8.0/en/sql-data-manipulation-statements.html
see
https://github.com/sshilko/php-sql-mydb
author

Sergei Shilko contact@sshilko.com

license

https://opensource.org/licenses/mit-license.php MIT

category

interfaces

Table of Contents

Methods

delete()  : int|null
deleteWhere()  : int|null
insert()  : string|null
insertMany()  : void
insertOne()  : string|null
replace()  : string|null
replaceOne()  : string|null
select()  : array<string|int, mixed>|null
update()  : int|null
updateWhere()  : int|null
updateWhereMany()  : void

Methods

deleteWhere()

public deleteWhere(array<string|int, mixed> $whereFields, string $table[, array<string|int, mixed> $whereNotFields = [] ]) : int|null
Parameters
$whereFields : array<string|int, mixed>
$table : string
$whereNotFields : array<string|int, mixed> = []
Return values
int|null

insertMany()

public insertMany(array<string|int, mixed> $data, array<string|int, string> $cols, string $table[, bool $ignore = false ][, string $onDuplicateSql = '' ]) : void
Parameters
$data : array<string|int, mixed>
$cols : array<string|int, string>
$table : string
$ignore : bool = false
$onDuplicateSql : string = ''
Tags
psalm-param

array<array-key, array<(float|int|string|\sql\MydbExpressionInterface|null)>> $data

updateWhere()

public updateWhere(array<string, float|int|string|MydbExpressionInterface|null> $update, array<string|int, mixed> $whereFields, string $table[, array<string|int, mixed> $whereNotFields = [] ]) : int|null
Parameters
$update : array<string, float|int|string|MydbExpressionInterface|null>
$whereFields : array<string|int, mixed>
$table : string
$whereNotFields : array<string|int, mixed> = []
Return values
int|null

updateWhereMany()

public updateWhereMany(array<string|int, mixed> $columnSetWhere, array<string|int, mixed> $where, string $table) : void
Parameters
$columnSetWhere : array<string|int, mixed>
$where : array<string|int, mixed>
$table : string

        
On this page

Search results