How to use the druid-query-toolkit/build/ast/sql-query/helpers.basicLiteralEscape 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
<>
              <menuitem>
                  copyAndAlert(
                    `${basicIdentifierEscape(header)} = ${basicLiteralEscape(value)}`,
                    `${basicIdentifierEscape(header)} = ${basicLiteralEscape(
                      value,
                    )} copied to clipboard`,
                  )
                }
              /&gt;
              <menuitem>
                  copyAndAlert(
                    `${basicIdentifierEscape(header)} != ${basicLiteralEscape(value)}`,
                    `${basicIdentifierEscape(header)} != ${basicLiteralEscape(
                      value,
                    )} copied to clipboard`,
                  )
                }
              /&gt;
            
          )}
          {showFullValueMenuItem}
        
      );
    }
  }</menuitem></menuitem>
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`,
                  )
                }