code: function isSqlQuery(literal) {
    if (!literal) {
      return false;
    }
  
    try {
      parser.parse(literal);
    } catch (error) {
      return false;
    }
  
    return true;
  }
docs: Check if `literal` is an SQL query.