UnformattedQuery returns the unformatted query of a query event. The query is only valid until the query Result is returned to the user.
()
| 51 | // UnformattedQuery returns the unformatted query of a query event. |
| 52 | // The query is only valid until the query Result is returned to the user. |
| 53 | func (e *QueryEvent) UnformattedQuery() ([]byte, error) { |
| 54 | return queryString(e.Query) |
| 55 | } |
| 56 | |
| 57 | func queryString(query interface{}) ([]byte, error) { |
| 58 | switch query := query.(type) { |
no test coverage detected