Update class
This class holds all the information regarding UPDATE operation, that will be used by Database class.
| package |
Default |
|---|
__construct(string $table, array $data) : void
stringName of the database table where the DELETE operation will happen
arrayData that will be inserted into $table
exec() : boolean
Execute the constructed UPDATE operation
boolean
toString() : string
Return the SQL query
string
where(string $column, string $operator, string $value = '') : \TinyORM\Update
Add where condition in this UPDATE operation
stringName of the database table column
stringSQL operator =, <, >, <> etc
stringValue to the compared with the value in $column and $operator
\TinyORM\Update
table : string
| var |
Database table |
|---|
string
data : array
| var |
Data |
|---|
array
where : array
| var |
Where |
|---|
array