mysql-to-hmset
v0.0.6
Published
Takes the result of a SELECT statement and executes a corresponding HMSET statement into redis
Downloads
11
Readme
Usage: mysql-to-hmset [options]
Executes the specified SELECT against the specified mysql database, then issues against the specified redis database HMSET : ... where key1, value1 are the keys and values from the mysql table, and id is the value of a column named 'id' in the mysql table
-h, --help output usage information
-V, --version output the version number
-D --mysql-database [mysqlDatabase] Database name in mysql
-n --number [number] Database number in redis
-q --query [query] SELECT query for mysql
-m --mysql-host [mysqlHost] Mysql hostname
-r --redis-host [redisHost] Redis hostname
-u --user [user] Mysql username
-a --auth [auth] Redis auth
-p --password [password] Mysql password
-k --key-name [keyName] redis key name prefix