Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom mysql flags for db exec command #549

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shadyvb
Copy link
Contributor

@shadyvb shadyvb commented Nov 29, 2022

Fixes #548

$options = $input->getArgument( 'options' ) ?? [];
array_shift( $options ); // remove the subcommand, we don't need it
$query = array_pop( $options ) ?: null; // the query is always the last option
$args = count( $options ) > 1 ? implode( ' ', $options ) : ''; // implode all optional options
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elsewhere in this file the comments are all on their own line before the code they're describing, rather than line-ending comments. I'd suggest maintaining "keep comments on their own line" for consistency with the existing style.

inc/composer/class-command.php Outdated Show resolved Hide resolved
inc/composer/class-command.php Outdated Show resolved Hide resolved
Co-authored-by: Robert O'Rourke <robert@o-rourke.org>
Copy link
Contributor

@roborourke roborourke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failed test looks it's just because the Kibana container didn't come up properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow passing custom flags to db exec
3 participants