GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sqlparser/redact_query.go at master · uole/sqlparser Expand file tree/ Copy pathredact_query.goMore file actions 19 lines (14 loc) · 496 Bytes / Copy pathredact_query.goFile metadata and controls19 lines (14 loc) · 496 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 package sqlparser import querypb "github.com/uole/sqlparser/dependency/querypb" // RedactSQLQuery returns a sql string with the params stripped out for display func RedactSQLQuery(sql string) (string, error) { bv := map[string]*querypb.BindVariable{} sqlStripped, comments := SplitMarginComments(sql) stmt, err := Parse(sqlStripped) if err != nil { return "", err } prefix := "redacted" Normalize(stmt, bv, prefix) return comments.Leading + String(stmt) + comments.Trailing, nil } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |