M logquery.go => logquery.go +3 -3
@@ 192,9 192,9 @@ func backgroundParser(stream io.Reader, out chan interface{}, quit chan int) {
}
}
-// RunQuery executse the specified query on the logfmt data provided on the
-// given stream input, writing any results to the given output stream using the
-// specified format.
+// RunQuery executes the specified SQLite query on the logfmt data provided on
+// the given stream input, writing any results to the given output stream using
+// the specified format.
func RunQuery(stream io.Reader, output io.Writer, query string, format OutputFormat) error {
db, err := sqlite3.Open(":memory:")
M parser/parser.go => parser/parser.go +4 -13
@@ 18,19 18,10 @@
// (") quotes are acceptable for quoted strings. Within quoted strings, the
// following escape characters are recognized:
//
-// * \a
-// * \b
-// * \\
-// * \t
-// * \n
-// * \f
-// * \r
-// * \v
-// * \'
-// * \"
-// * \xhh
-// * Interpreted to mean the hex value hh, cast to a Go rune. Exactly two
-// hex digits are required.
+// \a, \b, \\, \t, \n, \f, \r, \v, \', \", \xhh
+//
+// \xhh is interpreted to mean the hex value hh, cast to a Go rune. Exactly two
+// hex digits are required.
//
// Unquoted values contain any non-whitespace, non-newline character except for
// '=', keys have the same constraint, but also cannot contain ;, ' or "