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

Version Path
shiba-0.9.4 cmd/fingerprint.go
shiba-0.9.3 cmd/fingerprint.go
shiba-0.9.2 cmd/fingerprint.go
shiba-0.9.1 cmd/fingerprint.go
shiba-0.9.0 cmd/fingerprint.go
shiba-0.8.1 cmd/fingerprint.go
shiba-0.6.4 cmd/fingerprint.go
shiba-0.6.3 cmd/fingerprint.go
shiba-0.6.2 cmd/fingerprint.go
shiba-0.6.1 cmd/fingerprint.go
shiba-0.6.0 cmd/fingerprint.go
shiba-0.5.0 cmd/fingerprint.go
shiba-0.4.0 cmd/fingerprint.go
shiba-0.3.0 cmd/fingerprint.go
shiba-0.2.3 cmd/fingerprint.go
shiba-0.2.2 cmd/fingerprint.go
shiba-0.2.0 cmd/fingerprint.go
shiba-0.1.2 cmd/fingerprint.go
shiba-0.1.1 cmd/fingerprint.go
shiba-0.1.0 cmd/fingerprint.go