Skip to content

Commit cb0d728

Browse files
Update README with latest changes
1 parent 4aade4b commit cb0d728

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER`
213213
$ wp db query < debug.sql
214214

215215
# Check all tables in the database
216-
$ wp db query "CHECK TABLE $(wp db tables | paste -s -d',');"
216+
$ wp db query "CHECK TABLE $(wp db tables | paste -s -d, -);"
217217
+---------------------------------------+-------+----------+----------+
218218
| Table | Op | Msg_type | Msg_text |
219219
+---------------------------------------+-------+----------+----------+
@@ -298,6 +298,15 @@ Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and
298298
$ wp db export --exclude_tables=$(wp db tables --all-tables-with-prefix --format=csv)
299299
Success: Exported to 'wordpress_dbase-db72bb5.sql'.
300300

301+
# Export database to STDOUT.
302+
$ wp db export -
303+
-- MySQL dump 10.13 Distrib 5.7.19, for osx10.12 (x86_64)
304+
--
305+
-- Host: localhost Database: wpdev
306+
-- ------------------------------------------------------
307+
-- Server version 5.7.19
308+
...
309+
301310

302311

303312
### wp db import
@@ -371,16 +380,13 @@ Defaults to searching through all tables registered to $wpdb. On multisite, this
371380
---
372381

373382
[--regex]
374-
Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added, except 'u' if the database charset is UTF-8). Delimiters must be escaped if they occur in the expression.
383+
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.
375384

376385
[--regex-flags=<regex-flags>]
377-
Pass PCRE modifiers to the regex search (e.g. 'i' for case-insensitivity). Note that 'u' (UTF-8 mode) will not be automatically added.
386+
Pass PCRE modifiers to the regex search (e.g. 'i' for case-insensitivity).
378387

379388
[--regex-delimiter=<regex-delimiter>]
380-
The delimiter to use for the regex. It must be escaped if it appears in the search string.
381-
---
382-
default: /
383-
---
389+
The delimiter to use for the regex. It must be escaped if it appears in the search string. The default value is the result of `chr(1)`.
384390

385391
[--table_column_once]
386392
Output the 'table:column' line once before all matching row lines in the table column rather than before each matching row.
@@ -451,7 +457,7 @@ They can be concatenated. For instance, the default match color of black on a mu
451457
...
452458

453459
# Search through the database for the 'https?://' regular expression, printing stats.
454-
$ wp db search 'https?:\/\/' --regex --stats
460+
$ wp db search 'https?://' --regex --stats
455461
wp_comments:comment_author_url
456462
1:https://wordpress.org/
457463
...

0 commit comments

Comments
 (0)