wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 59 forks source link

wp db query add --porcelain #248

Closed raptor235 closed 1 year ago

raptor235 commented 4 years ago

For wp db query can we add --porcelain option so that if we need to retrieve just the ID of the result we can do so without having to parse the string.

marksabbath commented 2 years ago

Can you give us an example of what you'd like to achieve?

swissspidy commented 1 year ago

If you query just a specific column and use --skip-column-names, would that solve your use case?