grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

Extract SQL Fingerprint

Open emorydu opened this issue 11 months ago • 2 comments

Hats off: If I want to use the g4 file provided with the library and follow the documentation generated for the Go language to complete the extraction of SQL fingerprints using go-antlr4 which of the many generated listener implementation functions should I start with. Example: SELECT * FROM helloworld WHERE username = '1_32-32' AND number >= -3+4-0 AND number2 <= -8 AND expression_3414123 LIKE '%_43421'

I expect to get template := SELECT * FROM helloworld WHERE username = ? AND number >= ? AND number2 <= ? AND expression_3414123 LIKE ? Parameters: ['1_32-32', -3+4-0, -8, '%_43421']

Includes other syntax

emorydu avatar Dec 27 '24 07:12 emorydu