How to use the druid-query-toolkit/build/ast/sql-query/helpers.basicIdentifierEscape function in druid-query-toolkit

To help you get started, we’ve selected a few druid-query-toolkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / druid / web-console / src / views / query-view / query-output / query-output.tsx View on Github external
onClick={() =>
                  copyAndAlert(
                    `${basicIdentifierEscape(header)} != ${basicLiteralEscape(value)}`,
                    `${basicIdentifierEscape(header)} != ${basicLiteralEscape(
                      value,
                    )} copied to clipboard`,
                  )
                }
github apache / druid / web-console / src / views / query-view / query-output / query-output.tsx View on Github external
{showFullValueMenuItem}
        
      );
    } else {
      return (
        <menu>
          <menuitem> copyAndAlert(value, `${value} copied to clipboard`)}
          /&gt;
          {!runeMode &amp;&amp; (
            &lt;&gt;
              <menuitem>
                  copyAndAlert(
                    `${basicIdentifierEscape(header)} = ${basicLiteralEscape(value)}`,
                    `${basicIdentifierEscape(header)} = ${basicLiteralEscape(
                      value,
                    )} copied to clipboard`,
                  )
                }
              /&gt;
              <menuitem>
                  copyAndAlert(
                    `${basicIdentifierEscape(header)} != ${basicLiteralEscape(value)}`,
                    `${basicIdentifierEscape(header)} != ${basicLiteralEscape(</menuitem></menuitem></menuitem></menu>
github apache / druid / web-console / src / views / query-view / query-output / query-output.tsx View on Github external
/&gt;
          {!runeMode &amp;&amp; (
            &lt;&gt;
              <menuitem by="" order="">
                  copyAndAlert(
                    `ORDER BY ${basicIdentifierEscape(header)} ASC`,
                    `ORDER BY ${basicIdentifierEscape(header)} ASC' copied to clipboard`,
                  )
                }
              /&gt;
              <menuitem by="">
                  copyAndAlert(
                    `ORDER BY ${basicIdentifierEscape(header)} DESC`,
                    `ORDER BY ${basicIdentifierEscape(header)} DESC' copied to clipboard`,
                  )
                }
              /&gt;
            
          )}
        
      );
    }
  }
</menuitem></menuitem>