1 | <?php |
||
12 | class Insert extends AbstractQuery |
||
13 | { |
||
14 | /** |
||
15 | * @var \BfwSql\Helpers\Quoting $quoting The quoting system |
||
16 | */ |
||
17 | protected $quoting; |
||
18 | |||
19 | /** |
||
20 | * Constructor |
||
21 | * |
||
22 | * @param \BfwSql\SqlConnect $sqlConnect Instance of SGBD connexion |
||
23 | * @param string $quoteStatus (default: QUOTE_ALL) Status to automatic |
||
24 | * quoted string value system. |
||
25 | */ |
||
26 | public function __construct( |
||
37 | |||
38 | /** |
||
39 | * Getter accessor to property quoting |
||
40 | * |
||
41 | * @return \BfwSql\Helpers\Quoting |
||
42 | */ |
||
43 | public function getQuoting(): \BfwSql\Helpers\Quoting |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | protected function defineQueriesParts() |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | protected function obtainGenerateOrder(): array |
||
91 | |||
92 | /** |
||
93 | * Callback used by assembleRequestPart method |
||
94 | * Generate the sql query part who contains columns list and their values |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | protected function generateValues(): string |
||
125 | |||
126 | /** |
||
127 | * Callback used by assembleRequestPart method |
||
128 | * Generate the sql query for the SELECT part |
||
129 | * |
||
130 | * @return string |
||
131 | */ |
||
132 | protected function generateSelect(): string |
||
141 | |||
142 | /** |
||
143 | * Callback used by assembleRequestPart method |
||
144 | * Generate the sql query for the ON DUPLICATE KEY UPDATE part |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | protected function generateOnDuplicate(): string |
||
163 | } |
||
164 |