Skip to content

Commit 4531b3b

Browse files
committed
docs: move section positions
1 parent 3c36686 commit 4531b3b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

user_guide_src/source/database/query_builder.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,16 @@ Or as an array:
10961096
You may also use the ``$builder->set()`` method described above when
10971097
performing updates.
10981098

1099+
$builder->getCompiledUpdate()
1100+
-----------------------------
1101+
1102+
This works exactly the same way as ``$builder->getCompiledInsert()`` except
1103+
that it produces an **UPDATE** SQL string instead of an **INSERT** SQL string.
1104+
1105+
For more information view documentation for `$builder->getCompiledInsert()`_.
1106+
1107+
.. note:: This method doesn't work for batched updates.
1108+
10991109
.. _update-batch:
11001110

11011111
UpdateBatch
@@ -1141,16 +1151,6 @@ Since v4.3.0, you can also update from a query with the ``setQueryAsData()`` met
11411151

11421152
.. note:: It is required to alias the columns of the select query to match those of the target table.
11431153

1144-
$builder->getCompiledUpdate()
1145-
-----------------------------
1146-
1147-
This works exactly the same way as ``$builder->getCompiledInsert()`` except
1148-
that it produces an **UPDATE** SQL string instead of an **INSERT** SQL string.
1149-
1150-
For more information view documentation for ``$builder->getCompiledInsert()``.
1151-
1152-
.. note:: This method doesn't work for batched updates.
1153-
11541154
*************
11551155
Deleting Data
11561156
*************
@@ -1174,6 +1174,14 @@ the data to the first parameter of the method:
11741174
If you want to delete all data from a table, you can use the ``truncate()``
11751175
method, or ``emptyTable()``.
11761176

1177+
$builder->getCompiledDelete()
1178+
-----------------------------
1179+
1180+
This works exactly the same way as ``$builder->getCompiledInsert()`` except
1181+
that it produces a **DELETE** SQL string instead of an **INSERT** SQL string.
1182+
1183+
For more information view documentation for `$builder->getCompiledInsert()`_.
1184+
11771185
.. _delete-batch:
11781186

11791187
DeleteBatch
@@ -1220,14 +1228,6 @@ Generates a **TRUNCATE** SQL string and runs the query.
12201228
.. note:: If the TRUNCATE command isn't available, ``truncate()`` will
12211229
execute as "DELETE FROM table".
12221230

1223-
$builder->getCompiledDelete()
1224-
-----------------------------
1225-
1226-
This works exactly the same way as ``$builder->getCompiledInsert()`` except
1227-
that it produces a **DELETE** SQL string instead of an **INSERT** SQL string.
1228-
1229-
For more information view documentation for ``$builder->getCompiledInsert()``.
1230-
12311231
**********************
12321232
Conditional Statements
12331233
**********************

0 commit comments

Comments
 (0)