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
string
Name of the database table where the DELETE operation will happen
array
Data 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
string
Name of the database table column
string
SQL operator =, <, >, <> etc
string
Value 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