Class Sql

java.lang.Object
com.tableau.hyperapi.Sql

public final class Sql extends Object
Helper utilities for SQL formatting.
  • Constructor Details

    • Sql

      public Sql()
  • Method Details

    • escapeStringLiteral

      public static String escapeStringLiteral(String literal)
      Escapes a string literal for use in a SQL query.
      Parameters:
      literal - An unescaped string.
      Returns:
      The escaped string.
    • escapeName

      public static Name escapeName(String name)
      Escapes a SQL name.
      Parameters:
      name - An unescaped name.
      Returns:
      The escaped name.