// ValidateSQL valids a Lenses sql statement
ValidateSQL valids a Lenses sql statement
// ValidateSQL valids a Lenses sql statement
func (c *Client) ValidateSQL(sql string, caret int) (SQLValidationResponse, error) {
	var response SQLValidationResponse
	payload := SQLValidationRequest{SQL: sql, Caret: caret}
	send, err := json.Marshal(payload)
	if err != nil {
		return response, err
	}
	resp, err := c.Do(http.MethodPost, sqlValidationPath, contentTypeJSON, send)
	if err != nil {
		return response, err
	}
	err = c.ReadJSON(resp, &response)
	return response, err
}
func ( c * Client ) ValidateSQL ( sql string , caret int ) ( SQLValidationResponse , error ) { var response SQLValidationResponse payload := SQLValidationRequest { SQL : sql , Caret : caret } send , err := json . Marshal ( payload ) if err != nil { return response , err } resp , err := c . Do ( http . MethodPost , sqlValidationPath , contentTypeJSON , send ) if err != nil { return response , err } err = c . ReadJSON ( resp , & response ) return response , err }
ValidateSQL valids a Lenses sql statement
ValidateSQL valids a Lenses sql statement