-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathInsertQuery.php
More file actions
54 lines (43 loc) · 1003 Bytes
/
InsertQuery.php
File metadata and controls
54 lines (43 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace Vimeo\MysqlEngine\Query;
use Vimeo\MysqlEngine\Query\Expression\BinaryOperatorExpression;
use Vimeo\MysqlEngine\Query\Expression\Expression;
final class InsertQuery
{
/**
* @var string
*/
public $table;
/**
* @var string
*/
public $sql;
/**
* @var bool
*/
public $ignoreDupes;
/**
* @var array<int, BinaryOperatorExpression>
*/
public $updateExpressions = [];
/**
* @var array<int, string>
*/
public $insertColumns = [];
/**
* @var array<int, array<int, Expression>>
*/
public $values = [];
/**
* @var array<int, BinaryOperatorExpression>|null
*/
public $setClause = null;
/** @var SelectQuery|null $selectExpression */
public $selectQuery = null;
public function __construct(string $table, string $sql, bool $ignoreDupes)
{
$this->table = $table;
$this->sql = $sql;
$this->ignoreDupes = $ignoreDupes;
}
}