massquery

command module
v0.0.0-...-d483ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 9 Imported by: 0

README

Examples

$ MASSQUERY_CNN="login:password@tcp(books.example.com:3306)/books?allowAllFiles=true" bin/massquery --query "SELECT id, name FROM Books" --format "{status}\t{res}"
$ echo -e "Edgar\tPoe\nHoward\tLovecraft" \ 
    | bin/massquery \
        --cnn "login:password@tcp(books.example.com:3306)/books?allowAllFiles=true" \
        --query "SELECT id, name FROM Books WHERE Author='{1}'" \
        --format "{status}\t{res}"
$ echo -e "\tlogin:password@tcp(books1.example.com:3306)/books?allowAllFiles=true\tEdgar\tPoe\n\tlogin:password@tcp(books2.example.com:3306)/books?allowAllFiles=true\tHoward\tLovecraft" \ 
    | bin/massquery \ 
        --query "SELECT id, name FROM Books WHERE Author='{3}'" 
        --format "{cnn}\t{status}\t{res}"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL