Skip to content

Commit 3570603

Browse files
committed
Update configuration.md
Signed-off-by: chenen <itfunx@hotmail.com>
1 parent e2248bf commit 3570603

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

docs/configuration.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -140,29 +140,9 @@ for details of each.
140140
* `once`: boolean, run once and exit
141141
* `compression`: string, the compression to use
142142
* `compact`: boolean, compact the dump
143-
* `includeGeneratedColumns`: boolean, include columns marked as `GENERATED` in the dump (does not include `VIRTUAL` columns)
143+
* `includeGeneratedColumns`: boolean, include columns marked as `GENERATED` in the dump (does not include `VIRTUAL` columns), when set true, it makes the dump include the generated/default timestamp values instead of relying on the default expressions when restoring.
144144
* `triggersAndFunctions`: boolean, include triggers and functions and procedures in the dump
145145
* `maxAllowedPacket`: int, max packet size
146-
147-
When `includeGeneratedColumns` is enabled, columns that are defined with a `GENERATED` attribute or have a default expression
148-
will be included in the row data that is emitted as `INSERT` statements in the dump. Note that `VIRTUAL` columns remain excluded
149-
because they are computed and cannot be restored from dumped values.
150-
151-
Usage example:
152-
153-
Suppose a table has a column defined as:
154-
155-
```sql
156-
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
157-
```
158-
159-
When `includeGeneratedColumns` is turned on, rows for this table will contain the `create_time` value in the `INSERT` statements, e.g.:
160-
161-
```sql
162-
INSERT INTO `mytable` (`id`, `name`, `create_time`) VALUES (1, 'alice', '2025-11-14 09:30:00');
163-
```
164-
165-
This makes the dump include the generated/default timestamp values instead of relying on the default expressions when restoring.
166146
* `filenamePattern`: string, the filename pattern
167147
* `scripts`:
168148
* `preBackup`: string, path to directory with pre-backup scripts

0 commit comments

Comments
 (0)