Sha256: 8def4c181f5d5eaa4e0c8d455a6fb885dd81cc1ec5105181a9de68a6c4064dd7
Contents?: true
Size: 355 Bytes
Versions: 20
Compression:
Stored size: 355 Bytes
Contents
package main import ( "bufio" "fmt" "io" "os" "github.com/percona/go-mysql/query" ) func main() { r := bufio.NewReader(os.Stdin) for { sql, err := r.ReadString('\n') switch err { case nil: fmt.Println(query.Fingerprint(sql)) case io.EOF: os.Exit(0) default: fmt.Fprintln(os.Stderr, "reading standard input:", err) } } }
Version data entries
20 entries across 20 versions & 1 rubygems