Bluz\Db\Db::update PHP Method

update() public method

Create new query update builder
public update ( string $table ) : Bluz\Db\Query\Update
$table string
return Bluz\Db\Query\Update
    public function update($table)
    {
        $query = new Query\Update();
        $query->update($table);
        return $query;
    }

Usage Example

Example #1
0
 /**
  * Update Query Builder
  */
 public function testUpdate()
 {
     $query = $this->db->update('test');
     $this->assertInstanceOf('\\Bluz\\Db\\Query\\Update', $query);
 }