OSDN Git Service

remove --str flag from db subcommands
authorscribu <mail@scribu.net>
Thu, 4 Apr 2013 01:29:14 +0000 (04:29 +0300)
committerscribu <mail@scribu.net>
Thu, 4 Apr 2013 01:29:16 +0000 (04:29 +0300)
commit24e45edc6d33385a08ae75349b5050c20d5ef19b
treebea1a37d1421b1c4a599d6167ca4edfd226e9b37
parent30886fde8e89727e5f6ce77f5d19e76c89f54c3b
remove --str flag from db subcommands

The --str flag assumes that all the information will be passed as CLI
arguments, but that's no longer the case since we started using the
MYSQL_PWD env variable.

And we might want to start using the PDO extension in the future,
instead of the `mysql` binary.

Also introduce run_mysql_query() utility.
php/commands/db.php
php/utils.php