PHP Class SQLBuilder\Universal\Query\InsertQuery

See also: MySQL Insert Statement http://dev.mysql.com/doc/refman/5.7/en/insert.html
Inheritance: implements SQLBuilder\ToSqlInterface, use trait SQLBuilder\Universal\Traits\OptionTrait, use trait SQLBuilder\MySQL\Traits\PartitionTrait
Show file Open project: c9s/sqlbuilder Class Usage Examples

Protected Properties

Property Type Description
$intoTable insert into table
$returning string when this flag is set, the primary key will be returned.
$values

Public Methods

Method Description
getColumnNames ( BaseDriver $driver )
insert ( array $values )
into ( $table )
returning ( $returningColumns )
toSql ( BaseDriver $driver, SQLBuilder\ArgumentArray $args )

Method Details

getColumnNames() public method

public getColumnNames ( BaseDriver $driver )
$driver SQLBuilder\Driver\BaseDriver

insert() public method

public insert ( array $values )
$values array

into() public method

public into ( $table )

returning() public method

public returning ( $returningColumns )

toSql() public method

public toSql ( BaseDriver $driver, SQLBuilder\ArgumentArray $args )
$driver SQLBuilder\Driver\BaseDriver
$args SQLBuilder\ArgumentArray

Property Details

$intoTable protected property

insert into table
protected $intoTable

$returning protected property

when this flag is set, the primary key will be returned.
protected string $returning
return string

$values protected property

protected $values