Package com.tableau.hyperapi

# Class Sql

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

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Sql()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Name`
  `escapeName(String name)`
  Escapes a SQL name.
  `static String`
  `escapeStringLiteral(String literal)`
  Escapes a string literal for use in a SQL query.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.