Skip to content

Commit 8466f69

Browse files
committed
Regenerate README file - 2021-05-10
1 parent 4d96d60 commit 8466f69

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ wp-cli/db-command
33

44
Performs basic database operations using credentials stored in wp-config.php.
55

6-
[![Build Status](https://travis-ci.org/wp-cli/db-command.svg?branch=master)](https://travis-ci.org/wp-cli/db-command)
6+
[![Testing](https://github.com/wp-cli/db-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/db-command/actions/workflows/testing.yml)
77

88
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)
99

@@ -232,7 +232,7 @@ for more details on the `OPTIMIZE TABLE` statement.
232232
Displays the database table prefix.
233233

234234
~~~
235-
wp db prefix
235+
wp db prefix
236236
~~~
237237

238238
Display the database table prefix, as defined by the database handler's interpretation of the current site.
@@ -381,11 +381,11 @@ Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER`
381381
Exports the database to a file or to STDOUT.
382382

383383
~~~
384-
wp db export [<file>] [--dbuser=<value>] [--dbpass=<value>] [--<field>=<value>] [--tables=<tables>] [--exclude_tables=<tables>] [--porcelain] [--defaults]
384+
wp db export [<file>] [--dbuser=<value>] [--dbpass=<value>] [--<field>=<value>] [--tables=<tables>] [--exclude_tables=<tables>] [--include-tablespaces] [--porcelain] [--defaults]
385385
~~~
386386

387387
Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and
388-
`DB_PASSWORD` database credentials specified in wp-config.php.
388+
`DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid `mysqldump` flags.
389389

390390
**OPTIONS**
391391

@@ -408,6 +408,9 @@ Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and
408408
[--exclude_tables=<tables>]
409409
The comma separated list of specific tables that should be skipped from exporting. Excluding this parameter will export all tables in the database.
410410

411+
[--include-tablespaces]
412+
Skips adding the default --no-tablespaces option to mysqldump.
413+
411414
[--porcelain]
412415
Output filename for the exported database.
413416

@@ -512,7 +515,7 @@ Finds a string in the database.
512515
wp db search <search> [<tables>...] [--network] [--all-tables-with-prefix] [--all-tables] [--before_context=<num>] [--after_context=<num>] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--table_column_once] [--one_line] [--matches_only] [--stats] [--table_column_color=<color_code>] [--id_color=<color_code>] [--match_color=<color_code>]
513516
~~~
514517

515-
Searches through all or a selection of database tables for a given string, Outputs colorized references to the string.
518+
Searches through all of the text columns in a selection of database tables for a given string, Outputs colorized references to the string.
516519

517520
Defaults to searching through all tables registered to $wpdb. On multisite, this default is limited to the tables for the current site.
518521

@@ -546,7 +549,7 @@ Defaults to searching through all tables registered to $wpdb. On multisite, this
546549
---
547550

548551
[--regex]
549-
Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added). Delimiters must be escaped if they occur in the expression.
552+
Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added). Delimiters must be escaped if they occur in the expression. Because the search is run on individual columns, you can use the `^` and `$` tokens to mark the start and end of a match, respectively.
550553

551554
[--regex-flags=<regex-flags>]
552555
Pass PCRE modifiers to the regex search (e.g. 'i' for case-insensitivity).

0 commit comments

Comments
 (0)