Update

Update class

This class holds all the information regarding UPDATE operation, that will be used by Database class.

package

Default

Methods

__construct

__construct(string $table, array $data) : void

Arguments

$table

string

Name of the database table where the DELETE operation will happen

$data

array

Data that will be inserted into $table

exec

exec() : boolean

Execute the constructed UPDATE operation

Response

boolean

toString

toString() : string

Return the SQL query

Response

string

where

where(string $column, string $operator, string $value = '') : \TinyORM\Update

Add where condition in this UPDATE operation

Arguments

$column

string

Name of the database table column

$operator

string

SQL operator =, <, >, <> etc

$value

string

Value to the compared with the value in $column and $operator

Response

\TinyORM\Update

Properties

Database table

table : string
var

Database table

Type(s)

string

Data

data : array
var

Data

Type(s)

array

Where

where : array
var

Where

Type(s)

array