Package com.tableau.hyperapi
Class Sql
java.lang.Object
com.tableau.hyperapi.Sql
Helper utilities for SQL formatting.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Name
escapeName
(String name) Escapes a SQL name.static String
escapeStringLiteral
(String literal) Escapes a string literal for use in a SQL query.
-
Constructor Details
-
Sql
public Sql()
-
-
Method Details
-
escapeStringLiteral
Escapes a string literal for use in a SQL query.- Parameters:
literal
- An unescaped string.- Returns:
- The escaped string.
-
escapeName
Escapes a SQL name.- Parameters:
name
- An unescaped name.- Returns:
- The escaped name.
-